Query time 0.00216
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "39.78"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 28,
"rows_produced_per_join": 0,
"filtered": "0.67",
"cost_info": {
"read_cost": "39.30",
"eval_cost": "0.04",
"prefix_cost": "39.33",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"level",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`cscart_categories`.`level` <= 3) and (`webmarco`.`cscart_categories`.`storefront_id` in (0,1)) and (`webmarco`.`cscart_categories`.`category_id` in (266,443,1505,1518,2910,2920,2916,3017,3028,3308,3648,3573,3751,3816,3913,3685,4486,4559,3550,4922,3642,5299,3616,6456,447,10411,10425,10426)))"
}
},
{
"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": [
"webmarco.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.19",
"eval_cost": "0.04",
"prefix_cost": "39.56",
"data_read_per_join": "779"
},
"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": [
"webmarco.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.19",
"eval_cost": "0.04",
"prefix_cost": "39.78",
"data_read_per_join": "324"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
3017 |
2916 |
2910/2916/3017 |
Bird & Wildlife Houses |
0 |
A |
0 |
0 |
bird-and-wildlife-houses |
2910/2916 |
2916 |
2910 |
2910/2916 |
Decor |
0 |
A |
0 |
0 |
decor |
2910 |
2920 |
2910 |
2910/2920 |
Kitchen & Dining |
0 |
A |
0 |
0 |
kitchen-and-dining |
2910 |
266 |
0 |
266 |
Services |
0 |
A |
0 |
0 |
services-en |
|
5299 |
3642 |
3648/3642/5299 |
Desks |
10 |
A |
0 |
0 |
desks |
3648/3642 |
4922 |
3550 |
3648/3550/4922 |
Beds & Bed Frames |
20 |
A |
0 |
0 |
beds-and-bed-frames |
3648/3550 |
6456 |
3616 |
3648/3616/6456 |
Bathroom Furniture Sets |
30 |
A |
0 |
0 |
bedroom-furniture-sets |
3648/3616 |
3816 |
3751 |
3648/3751/3816 |
Kitchen & Dining Room Tables |
40 |
A |
0 |
0 |
kitchen-and-dining-room-tables |
3648/3751 |
4486 |
3685 |
3648/3685/4486 |
Outdoor Seating |
40 |
A |
0 |
0 |
outdoor-seating |
3648/3685 |
447 |
443 |
266/443/447 |
Fixtures |
40 |
A |
0 |
0 |
fixtures |
266/443 |
2910 |
0 |
2910 |
Home & Garden |
40 |
A |
0 |
0 |
home-and-garden |
|
443 |
266 |
266/443 |
Construction |
50 |
A |
0 |
0 |
construction |
266 |
3648 |
0 |
3648 |
Furniture |
50 |
A |
0 |
0 |
furniture |
|
1505 |
443 |
266/443/1505 |
Carpenter |
70 |
A |
0 |
0 |
carpenter |
266/443 |
1518 |
443 |
266/443/1518 |
Ceilings |
100 |
A |
0 |
0 |
ceilings |
266/443 |
10425 |
443 |
266/443/10425 |
Wooden House |
320 |
A |
0 |
0 |
shtepi-druri |
266/443 |
10426 |
443 |
266/443/10426 |
Roof |
330 |
A |
0 |
0 |
cati |
266/443 |
3308 |
2916 |
2910/2916/3308 |
Vases |
450 |
A |
0 |
0 |
vases |
2910/2916 |
3550 |
3648 |
3648/3550 |
Beds & Accessories |
1060 |
A |
0 |
0 |
beds-and-accessories |
3648 |
3573 |
3648 |
3648/3573 |
Benches |
1070 |
A |
0 |
0 |
benches |
3648 |
3616 |
3648 |
3648/3616 |
Furniture Sets |
1120 |
A |
0 |
0 |
furniture-sets |
3648 |
3642 |
3648 |
3648/3642 |
Office Furniture |
1180 |
A |
0 |
0 |
office-furniture |
3648 |
3685 |
3648 |
3648/3685 |
Outdoor Furniture |
1220 |
A |
0 |
0 |
outdoor-furniture |
3648 |
3751 |
3648 |
3648/3751 |
Tables |
1290 |
A |
0 |
0 |
tables |
3648 |
3913 |
3648 |
3648/3913 |
Shelving |
1310 |
A |
0 |
0 |
shelving |
3648 |