Query time 0.00224
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "54.59"
},
"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": 37,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '2910/3105/3104/%')",
"cost_info": {
"read_cost": "52.66",
"eval_cost": "0.15",
"prefix_cost": "52.81",
"data_read_per_join": "4K"
},
"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.74",
"eval_cost": "0.15",
"prefix_cost": "53.70",
"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": [
"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.74",
"eval_cost": "0.15",
"prefix_cost": "54.59",
"data_read_per_join": "1K"
},
"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 |
3123 |
3104 |
2910/3105/3104/3123 |
Buckets |
0 |
A |
0 |
0 |
1 |
buckets-en |
2910/3105/3104 |
3124 |
3104 |
2910/3105/3104/3124 |
Carpet Sweepers |
0 |
A |
0 |
0 |
0 |
carpet-sweepers-en |
2910/3105/3104 |
3161 |
3130 |
2910/3105/3104/3130/3161 |
All-Purpose Cleaners |
0 |
A |
0 |
0 |
114 |
all-purpose-cleaners |
2910/3105/3104/3130 |
3120 |
3104 |
2910/3105/3104/3120 |
Broom & Mop Handles |
0 |
A |
0 |
0 |
0 |
broom-and-mop-handles-en |
2910/3105/3104 |
3121 |
3104 |
2910/3105/3104/3121 |
Broom Heads |
0 |
A |
0 |
0 |
0 |
broom-heads-en |
2910/3105/3104 |
3122 |
3104 |
2910/3105/3104/3122 |
Brooms |
0 |
A |
0 |
0 |
0 |
brooms-en |
2910/3105/3104 |
3162 |
3130 |
2910/3105/3104/3130/3162 |
Carpet Cleaners |
0 |
A |
0 |
0 |
0 |
carpet-cleaners |
2910/3105/3104/3130 |
3125 |
3104 |
2910/3105/3104/3125 |
Cleaning Gloves |
0 |
A |
0 |
0 |
6 |
cleaning-gloves-en |
2910/3105/3104 |
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 |
3126 |
3104 |
2910/3105/3104/3126 |
Duster Refills |
0 |
A |
0 |
0 |
0 |
duster-refills-en |
2910/3105/3104 |
3127 |
3104 |
2910/3105/3104/3127 |
Dusters |
0 |
A |
0 |
0 |
0 |
dusters-en |
2910/3105/3104 |
3128 |
3104 |
2910/3105/3104/3128 |
Dustpans |
0 |
A |
0 |
0 |
1 |
dustpans-en |
2910/3105/3104 |
3166 |
3130 |
2910/3105/3104/3130/3166 |
Fabric & Upholstery Cleaners |
0 |
A |
0 |
0 |
5 |
fabric-and-upholstery-cleaners |
2910/3105/3104/3130 |
3129 |
3104 |
2910/3105/3104/3129 |
Fabric & Upholstery Protectors |
0 |
A |
0 |
0 |
0 |
fabric-and-upholstery-protectors-en |
2910/3105/3104 |
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 |
3130 |
3104 |
2910/3105/3104/3130 |
Household Cleaning Products |
0 |
A |
0 |
0 |
117 |
household-cleaning-products-en |
2910/3105/3104 |
3170 |
3130 |
2910/3105/3104/3130/3170 |
Household Disinfectants |
0 |
A |
0 |
0 |
22 |
household-disinfectants |
2910/3105/3104/3130 |
3131 |
3104 |
2910/3105/3104/3131 |
Mop Heads & Refills |
0 |
A |
0 |
0 |
0 |
mop-heads-and-refills-en |
2910/3105/3104 |
3132 |
3104 |
2910/3105/3104/3132 |
Mops |
0 |
A |
0 |
0 |
0 |
mops-en |
2910/3105/3104 |
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 |
3133 |
3104 |
2910/3105/3104/3133 |
Scrub Brush Heads & Refills |
0 |
A |
0 |
0 |
0 |
scrub-brush-heads-and-refills-en |
2910/3105/3104 |
3134 |
3104 |
2910/3105/3104/3134 |
Scrub Brushes |
0 |
A |
0 |
0 |
0 |
scrub-brushes-en |
2910/3105/3104 |
3135 |
3104 |
2910/3105/3104/3135 |
Shop Towels & General-Purpose Cleaning Cloths |
0 |
A |
0 |
0 |
14 |
shop-towels-and-general-purpose-cleaning-cloths-en |
2910/3105/3104 |
3136 |
3104 |
2910/3105/3104/3136 |
Sponges & Scouring Pads |
0 |
A |
0 |
0 |
21 |
sponges-and-scouring-pads-en |
2910/3105/3104 |
3137 |
3104 |
2910/3105/3104/3137 |
Squeegees |
0 |
A |
0 |
0 |
0 |
squeegees-en |
2910/3105/3104 |
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 |