Query time 0.00211
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 '5684/5699/8544/%')",
"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 |
8547 |
8544 |
5684/5699/8544/8547 |
Altitude Training Masks |
10 |
A |
0 |
0 |
0 |
altitude-training-masks-en |
5684/5699/8544 |
8560 |
8558 |
5684/5699/8544/8558/8560 |
Ball Pump Needles |
10 |
A |
0 |
0 |
0 |
ball-pump-needles-en |
5684/5699/8544/8558 |
8551 |
8544 |
5684/5699/8544/8551 |
Athletic Cups |
1400 |
A |
0 |
0 |
0 |
athletic-cups-en |
5684/5699/8544 |
8555 |
8544 |
5684/5699/8544/8555 |
Ball Carrying Bags & Carts |
1410 |
A |
0 |
0 |
0 |
ball-carrying-bags-and-carts-en |
5684/5699/8544 |
8558 |
8544 |
5684/5699/8544/8558 |
Ball Pump Accessories |
1420 |
A |
0 |
0 |
0 |
ball-pump-accessories-en |
5684/5699/8544 |
8564 |
8544 |
5684/5699/8544/8564 |
Ball Pumps |
1440 |
A |
0 |
0 |
0 |
ball-pumps-en-2 |
5684/5699/8544 |
8569 |
8544 |
5684/5699/8544/8569 |
Grip Spray & Chalk |
1450 |
A |
0 |
0 |
0 |
grip-spray-and-chalk-en |
5684/5699/8544 |
8571 |
8544 |
5684/5699/8544/8571 |
Exercise & Gym Mat Storage Racks & Carts |
1460 |
A |
0 |
0 |
0 |
exercise-and-gym-mat-storage-racks-and-carts-en |
5684/5699/8544 |
8582 |
8544 |
5684/5699/8544/8582 |
Gym Mats |
1470 |
A |
0 |
0 |
0 |
gym-mats-en |
5684/5699/8544 |
8587 |
8544 |
5684/5699/8544/8587 |
Practice Nets & Screens |
1480 |
A |
0 |
0 |
0 |
practice-nets-and-screens-en |
5684/5699/8544 |
8592 |
8544 |
5684/5699/8544/8592 |
Speed & Agility Ladders & Hurdles |
1490 |
A |
0 |
0 |
0 |
speed-and-agility-ladders-and-hurdles-en |
5684/5699/8544 |
8594 |
8544 |
5684/5699/8544/8594 |
Sports & Agility Cones |
1500 |
A |
0 |
0 |
0 |
sports-and-agility-cones-en |
5684/5699/8544 |
8598 |
8544 |
5684/5699/8544/8598 |
Sports Megaphones |
1510 |
A |
0 |
0 |
0 |
sports-megaphones-en |
5684/5699/8544 |
8606 |
8544 |
5684/5699/8544/8606 |
Sports Mouthguards |
1520 |
A |
0 |
0 |
0 |
sports-mouthguards-en |
5684/5699/8544 |
8609 |
8544 |
5684/5699/8544/8609 |
Stadium Seats & Cushions |
1530 |
A |
0 |
0 |
0 |
stadium-seats-and-cushions-en |
5684/5699/8544 |