Query time 0.00159
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "28.52"
},
"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": 19,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '2910/3105/3104/3130/%')",
"cost_info": {
"read_cost": "27.53",
"eval_cost": "0.08",
"prefix_cost": "27.61",
"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.38",
"eval_cost": "0.08",
"prefix_cost": "28.07",
"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.38",
"eval_cost": "0.08",
"prefix_cost": "28.52",
"data_read_per_join": "659"
},
"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 |
3161 |
3130 |
2910/3105/3104/3130/3161 |
All-Purpose Cleaners |
0 |
A |
0 |
0 |
114 |
all-purpose-cleaners |
2910/3105/3104/3130 |
3162 |
3130 |
2910/3105/3104/3130/3162 |
Carpet Cleaners |
0 |
A |
0 |
0 |
0 |
carpet-cleaners |
2910/3105/3104/3130 |
3163 |
3130 |
2910/3105/3104/3130/3163 |
Descalers & Decalcifiers |
0 |
A |
0 |
0 |
3 |
descalers-and-decalcifiers |
2910/3105/3104/3130 |
3164 |
3130 |
2910/3105/3104/3130/3164 |
Dish Detergent & Soap |
0 |
A |
0 |
0 |
56 |
dish-detergent-and-soap |
2910/3105/3104/3130 |
3165 |
3130 |
2910/3105/3104/3130/3165 |
Dishwasher Cleaners |
0 |
A |
0 |
0 |
8 |
dishwasher-cleaners |
2910/3105/3104/3130 |
3166 |
3130 |
2910/3105/3104/3130/3166 |
Fabric & Upholstery Cleaners |
0 |
A |
0 |
0 |
5 |
fabric-and-upholstery-cleaners |
2910/3105/3104/3130 |
3167 |
3130 |
2910/3105/3104/3130/3167 |
Floor Cleaners |
0 |
A |
0 |
0 |
90 |
floor-cleaners |
2910/3105/3104/3130 |
3168 |
3130 |
2910/3105/3104/3130/3168 |
Furniture Cleaners & Polish |
0 |
A |
0 |
0 |
15 |
furniture-cleaners-and-polish |
2910/3105/3104/3130 |
3169 |
3130 |
2910/3105/3104/3130/3169 |
Glass & Surface Cleaners |
0 |
A |
0 |
0 |
0 |
glass-and-surface-cleaners |
2910/3105/3104/3130 |
3170 |
3130 |
2910/3105/3104/3130/3170 |
Household Disinfectants |
0 |
A |
0 |
0 |
22 |
household-disinfectants |
2910/3105/3104/3130 |
3171 |
3130 |
2910/3105/3104/3130/3171 |
Oven & Grill Cleaners |
0 |
A |
0 |
0 |
0 |
oven-and-grill-cleaners |
2910/3105/3104/3130 |
3172 |
3130 |
2910/3105/3104/3130/3172 |
Pet Odor & Stain Removers |
0 |
A |
0 |
0 |
0 |
pet-odor-and-stain-removers |
2910/3105/3104/3130 |
3173 |
3130 |
2910/3105/3104/3130/3173 |
Rinse Aids |
0 |
A |
0 |
0 |
0 |
rinse-aids |
2910/3105/3104/3130 |
3174 |
3130 |
2910/3105/3104/3130/3174 |
Stainless Steel Cleaners & Polishes |
0 |
A |
0 |
0 |
0 |
stainless-steel-cleaners-and-polishes |
2910/3105/3104/3130 |
3175 |
3130 |
2910/3105/3104/3130/3175 |
Toilet Bowl Cleaners |
0 |
A |
0 |
0 |
14 |
toilet-bowl-cleaners |
2910/3105/3104/3130 |
3176 |
3130 |
2910/3105/3104/3130/3176 |
Tub & Tile Cleaners |
0 |
A |
0 |
0 |
0 |
tub-and-tile-cleaners |
2910/3105/3104/3130 |
3177 |
3130 |
2910/3105/3104/3130/3177 |
Washing Machine Cleaners |
0 |
A |
0 |
0 |
3 |
washing-machine-cleaners |
2910/3105/3104/3130 |
3724 |
3169 |
2910/3105/3104/3130/3169/3724 |
Glass Cleaners |
10 |
A |
0 |
0 |
5 |
glass-cleaners |
2910/3105/3104/3130/3169 |
3728 |
3169 |
2910/3105/3104/3130/3169/3728 |
Multi-surface Cleaners |
20 |
A |
0 |
0 |
0 |
multi-surface-cleaners |
2910/3105/3104/3130/3169 |