Query time 0.00663
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "29.97"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 20,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '2910/3105/3223/%')",
"cost_info": {
"read_cost": "28.93",
"eval_cost": "0.08",
"prefix_cost": "29.01",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"product_count",
"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`.`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": [
"webmarco.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.40",
"eval_cost": "0.08",
"prefix_cost": "29.49",
"data_read_per_join": "1K"
},
"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.40",
"eval_cost": "0.08",
"prefix_cost": "29.97",
"data_read_per_join": "694"
},
"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 |
product_count |
seo_name |
seo_path |
3283 |
3223 |
2910/3105/3223/3283 |
Bleach |
0 |
A |
0 |
0 |
3 |
bleach |
2910/3105/3223 |
3284 |
3223 |
2910/3105/3223/3284 |
Clothespins |
0 |
A |
0 |
0 |
2 |
clothespins |
2910/3105/3223 |
3285 |
3223 |
2910/3105/3223/3285 |
Dry Cleaning Kits |
0 |
A |
0 |
0 |
22 |
dry-cleaning-kits |
2910/3105/3223 |
3286 |
3223 |
2910/3105/3223/3286 |
Drying Racks & Hangers |
0 |
A |
0 |
0 |
15 |
drying-racks-and-hangers |
2910/3105/3223 |
3287 |
3223 |
2910/3105/3223/3287 |
Fabric Refreshers |
0 |
A |
0 |
0 |
0 |
fabric-refreshers |
2910/3105/3223 |
3288 |
3223 |
2910/3105/3223/3288 |
Fabric Shavers |
0 |
A |
0 |
0 |
0 |
fabric-shavers |
2910/3105/3223 |
3289 |
3223 |
2910/3105/3223/3289 |
Fabric Softeners & Dryer Sheets |
0 |
A |
0 |
0 |
4 |
fabric-softeners-and-dryer-sheets |
2910/3105/3223 |
3290 |
3223 |
2910/3105/3223/3290 |
Fabric Stain Removers |
0 |
A |
0 |
0 |
0 |
fabric-stain-removers |
2910/3105/3223 |
3291 |
3223 |
2910/3105/3223/3291 |
Fabric Starch |
0 |
A |
0 |
0 |
47 |
fabric-starch |
2910/3105/3223 |
3292 |
3223 |
2910/3105/3223/3292 |
Garment Shields |
0 |
A |
0 |
0 |
0 |
garment-shields |
2910/3105/3223 |
3293 |
3223 |
2910/3105/3223/3293 |
Iron Rests |
0 |
A |
0 |
0 |
0 |
iron-rests |
2910/3105/3223 |
3294 |
3223 |
2910/3105/3223/3294 |
Ironing Board Pads & Covers |
0 |
A |
0 |
0 |
0 |
ironing-board-pads-and-covers |
2910/3105/3223 |
3295 |
3223 |
2910/3105/3223/3295 |
Ironing Board Replacement Parts |
0 |
A |
0 |
0 |
0 |
ironing-board-replacement-parts |
2910/3105/3223 |
3296 |
3223 |
2910/3105/3223/3296 |
Ironing Boards |
0 |
A |
0 |
0 |
0 |
ironing-boards |
2910/3105/3223 |
3297 |
3223 |
2910/3105/3223/3297 |
Laundry Balls |
0 |
A |
0 |
0 |
0 |
laundry-balls |
2910/3105/3223 |
3298 |
3223 |
2910/3105/3223/3298 |
Laundry Baskets |
0 |
A |
0 |
0 |
0 |
laundry-baskets |
2910/3105/3223 |
3299 |
3223 |
2910/3105/3223/3299 |
Laundry Detergent |
0 |
A |
0 |
0 |
545 |
laundry-detergent |
2910/3105/3223 |
3300 |
3223 |
2910/3105/3223/3300 |
Laundry Wash Bags & Frames |
0 |
A |
0 |
0 |
0 |
laundry-wash-bags-and-frames |
2910/3105/3223 |
3301 |
3223 |
2910/3105/3223/3301 |
Lint Rollers |
0 |
A |
0 |
0 |
0 |
lint-rollers-en |
2910/3105/3223 |
3302 |
3223 |
2910/3105/3223/3302 |
Wrinkle Releasers & Anti-Static Sprays |
0 |
A |
0 |
0 |
0 |
wrinkle-releasers-and-anti-static-sprays |
2910/3105/3223 |