Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "30.03"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"p_category_id"
],
"rows_examined_per_scan": 98,
"rows_produced_per_join": 0,
"filtered": "1.02",
"cost_info": {
"read_cost": "23.09",
"eval_cost": "0.20",
"prefix_cost": "23.29",
"data_read_per_join": "3K"
},
"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`.`category_id` <> 264) and (`danishecarter_25_march`.`cscart_categories`.`parent_id` <> 264) and (`danishecarter_25_march`.`cscart_categories`.`storefront_id` in (0,1)) and (`danishecarter_25_march`.`cscart_categories`.`category_id` in (335,336,337,338,339,340,341,342,343,344,345,346,347,348)))"
}
},
{
"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": "1.00",
"eval_cost": "0.20",
"prefix_cost": "24.49",
"data_read_per_join": "3K"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.74",
"eval_cost": "0.80",
"prefix_cost": "30.03",
"data_read_per_join": "6K"
},
"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 |
336 |
335 |
335/336 |
Agricultural vehicle |
0 |
A |
0 |
0 |
agricultural-vehicle |
335 |
338 |
335 |
335/338 |
Car |
0 |
A |
0 |
0 |
car |
335 |
337 |
335 |
335/337 |
Coach |
0 |
A |
0 |
0 |
coach |
335 |
339 |
335 |
335/339 |
Construction machine |
0 |
A |
0 |
0 |
construction-machine |
335 |
340 |
335 |
335/340 |
E-Bike |
0 |
A |
0 |
0 |
e-bike |
335 |
341 |
335 |
335/341 |
Forklift truck |
0 |
A |
0 |
0 |
forklift-truck |
335 |
342 |
335 |
335/342 |
Motorcycle |
0 |
A |
0 |
0 |
motorcycle |
335 |
343 |
335 |
335/343 |
Motorhome or Caravan |
0 |
A |
0 |
0 |
motorhome-or-caravan |
335 |
344 |
335 |
335/344 |
Semi-trailer |
0 |
A |
0 |
0 |
semi-trailer |
335 |
345 |
335 |
335/345 |
Semi-trailer truck |
0 |
A |
0 |
0 |
semi-trailer-truck |
335 |
346 |
335 |
335/346 |
Trailer |
0 |
A |
0 |
0 |
trailer |
335 |
347 |
335 |
335/347 |
Truck over 7.5 t |
0 |
A |
0 |
0 |
truck-over-7-5-t |
335 |
348 |
335 |
335/348 |
Van or truck up to 7.5 t |
0 |
A |
0 |
0 |
van-or-truck-up-to-7-5-t |
335 |
335 |
0 |
335 |
Vehicles |
0 |
A |
0 |
0 |
vehicles |
|