Query time 0.00144
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.73"
},
"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": 15,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '5362/6980/%')",
"cost_info": {
"read_cost": "21.95",
"eval_cost": "0.06",
"prefix_cost": "22.01",
"data_read_per_join": "1K"
},
"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.30",
"eval_cost": "0.06",
"prefix_cost": "22.37",
"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.30",
"eval_cost": "0.06",
"prefix_cost": "22.73",
"data_read_per_join": "520"
},
"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 |
6996 |
6980 |
5362/6980/6996 |
Alphabet Toys |
10 |
A |
0 |
0 |
19 |
alphabet-toys |
5362/6980 |
7008 |
6980 |
5362/6980/7008 |
Baby Activity Toys |
20 |
A |
0 |
0 |
241 |
baby-activity-toys |
5362/6980 |
7028 |
6980 |
5362/6980/7028 |
Baby Bouncers & Rockers |
30 |
A |
0 |
0 |
0 |
baby-bouncers-and-rockers |
5362/6980 |
7051 |
6980 |
5362/6980/7051 |
Baby Jumpers & Swings |
40 |
A |
0 |
0 |
0 |
baby-jumpers-and-swings |
5362/6980 |
7073 |
6980 |
5362/6980/7073 |
Baby Mobile Accessories |
50 |
A |
0 |
0 |
0 |
baby-mobile-accessories |
5362/6980 |
7100 |
6980 |
5362/6980/7100 |
Baby Mobiles |
60 |
A |
0 |
0 |
0 |
baby-mobiles |
5362/6980 |
7114 |
6980 |
5362/6980/7114 |
Baby Soothers |
70 |
A |
0 |
0 |
0 |
baby-soothers |
5362/6980 |
7124 |
6980 |
5362/6980/7124 |
Baby Walkers & Entertainers |
80 |
A |
0 |
0 |
0 |
baby-walkers-and-entertainers |
5362/6980 |
7136 |
6980 |
5362/6980/7136 |
Play Mats & Gyms |
90 |
A |
0 |
0 |
0 |
play-mats-and-gyms |
5362/6980 |
7149 |
7136 |
5362/6980/7136/7149 |
Play Gyms |
100 |
A |
0 |
0 |
0 |
play-mats-and-gyms-play-gyms |
5362/6980/7136 |
7280 |
6980 |
5362/6980/7280 |
Play Yards |
100 |
A |
0 |
0 |
0 |
play-yards |
5362/6980 |
7267 |
7136 |
5362/6980/7136/7267 |
Play Mats |
110 |
A |
0 |
0 |
0 |
play-mats |
5362/6980/7136 |
7298 |
6980 |
5362/6980/7298 |
Push & Pull Toys |
110 |
A |
0 |
0 |
15 |
push-and-pull-toys |
5362/6980 |
7316 |
6980 |
5362/6980/7316 |
Rattles |
120 |
A |
0 |
0 |
3 |
rattles |
5362/6980 |
7333 |
6980 |
5362/6980/7333 |
Sorting & Stacking Toys |
130 |
A |
0 |
0 |
0 |
sorting-and-stacking-toys |
5362/6980 |