Query time 0.00081
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.49"
},
"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_25_march`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`danishecarter_25_march`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`danishecarter_25_march`.`cscart_categories`.`usergroup_ids`)) and (`danishecarter_25_march`.`cscart_categories`.`status` = 'A') and (`danishecarter_25_march`.`cscart_categories`.`id_path` like '321/%') and (`danishecarter_25_march`.`cscart_categories`.`category_id` <> 264) and (`danishecarter_25_march`.`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_25_march.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_25_march.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.62",
"eval_cost": "0.11",
"prefix_cost": "12.49",
"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 |
322 |
321 |
321/322 |
Agricultural vehicle |
0 |
A |
0 |
0 |
agricultural-vehicle |
321 |
324 |
321 |
321/324 |
Car |
0 |
A |
0 |
0 |
car |
321 |
323 |
321 |
321/323 |
Coach |
0 |
A |
0 |
0 |
coach |
321 |
325 |
321 |
321/325 |
Construction machine |
0 |
A |
0 |
0 |
construction-machine |
321 |
326 |
321 |
321/326 |
E-Bike |
0 |
A |
0 |
0 |
e-bike |
321 |
327 |
321 |
321/327 |
Forklift truck |
0 |
A |
0 |
0 |
forklift-truck |
321 |
328 |
321 |
321/328 |
Motorcycle |
0 |
A |
0 |
0 |
motorcycle |
321 |
329 |
321 |
321/329 |
Motorhome or Caravan |
0 |
A |
0 |
0 |
motorhome-or-caravan |
321 |
330 |
321 |
321/330 |
Semi-trailer |
0 |
A |
0 |
0 |
semi-trailer |
321 |
331 |
321 |
321/331 |
Semi-trailer truck |
0 |
A |
0 |
0 |
semi-trailer-truck |
321 |
332 |
321 |
321/332 |
Trailer |
0 |
A |
0 |
0 |
trailer |
321 |
333 |
321 |
321/333 |
Truck over 7.5 t |
0 |
A |
0 |
0 |
truck-over-7-5-t |
321 |
334 |
321 |
321/334 |
Van or truck up to 7.5 t |
0 |
A |
0 |
0 |
van-or-truck-up-to-7-5-t |
321 |