Query time 0.00056
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.40"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 13,
"rows_produced_per_join": 0,
"filtered": "1.02",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "0.03",
"prefix_cost": "11.60",
"data_read_per_join": "456"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash"
],
"attached_condition": "(((`danishecarter_31jan`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`danishecarter_31jan`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`danishecarter_31jan`.`cscart_categories`.`usergroup_ids`)) and (`danishecarter_31jan`.`cscart_categories`.`status` = 'A') and (`danishecarter_31jan`.`cscart_categories`.`id_path` like '319/%') and (`danishecarter_31jan`.`cscart_categories`.`category_id` <> 264) and (`danishecarter_31jan`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"danishecarter_31jan.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.13",
"eval_cost": "0.03",
"prefix_cost": "11.76",
"data_read_per_join": "411"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"danishecarter_31jan.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.54",
"eval_cost": "0.11",
"prefix_cost": "12.41",
"data_read_per_join": "921"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
320 |
319 |
319/320 |
Agricultural vehicle |
0 |
A |
0 |
0 |
agricultural-vehicle |
319 |
322 |
319 |
319/322 |
Car |
0 |
A |
0 |
0 |
car |
319 |
321 |
319 |
319/321 |
Coach |
0 |
A |
0 |
0 |
coach |
319 |
323 |
319 |
319/323 |
Construction machine |
0 |
A |
0 |
0 |
construction-machine |
319 |
324 |
319 |
319/324 |
E-Bike |
0 |
A |
0 |
0 |
e-bike |
319 |
325 |
319 |
319/325 |
Forklift truck |
0 |
A |
0 |
0 |
forklift-truck |
319 |
326 |
319 |
319/326 |
Motorcycle |
0 |
A |
0 |
0 |
motorcycle |
319 |
327 |
319 |
319/327 |
Motorhome or Caravan |
0 |
A |
0 |
0 |
motorhome-or-caravan |
319 |
328 |
319 |
319/328 |
Semi-trailer |
0 |
A |
0 |
0 |
semi-trailer |
319 |
329 |
319 |
319/329 |
Semi-trailer truck |
0 |
A |
0 |
0 |
semi-trailer-truck |
319 |
330 |
319 |
319/330 |
Trailer |
0 |
A |
0 |
0 |
trailer |
319 |
331 |
319 |
319/331 |
Truck over 7.5 t |
0 |
A |
0 |
0 |
truck-over-7-5-t |
319 |
332 |
319 |
319/332 |
Van or truck up to 7.5 t |
0 |
A |
0 |
0 |
van-or-truck-up-to-7-5-t |
319 |