Query time 0.00333
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "114.09"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "q_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 46,
"rows_produced_per_join": 1,
"filtered": "3.33",
"index_condition": "(`portal`.`q_categories`.`category_id` in (12,13,38,40,41,6,159,163,168,183,184,189,207,243,301,406,408,425,426,438,439,440,441,442,443,444,445,446,448,451,452,454,455,456,476,477,478,479,481,482,248,544,547,2,589,591))",
"cost_info": {
"read_cost": "110.10",
"eval_cost": "0.31",
"prefix_cost": "110.41",
"data_read_per_join": "4K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"level",
"usergroup_ids",
"status",
"position",
"is_trash",
"ab__lc_catalog_image_control"
],
"attached_condition": "(((`portal`.`q_categories`.`usergroup_ids` = '') or find_in_set(0,`portal`.`q_categories`.`usergroup_ids`) or find_in_set(1,`portal`.`q_categories`.`usergroup_ids`)) and (`portal`.`q_categories`.`status` = 'A') and (`portal`.`q_categories`.`level` <= 3))"
}
},
{
"table": {
"table_name": "q_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"portal.q_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.53",
"eval_cost": "0.31",
"prefix_cost": "112.25",
"data_read_per_join": "4K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "q_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"portal.q_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.53",
"eval_cost": "0.31",
"prefix_cost": "114.09",
"data_read_per_join": "2K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
seo_name |
seo_path |
ab__lc_catalog_image_control |
301 |
0 |
301 |
Products |
0 |
A |
products |
|
none |
446 |
445 |
6/445/446 |
Cleaning Supplies & Tools |
10 |
A |
cleaning-tools |
6/445 |
none |
439 |
438 |
6/438/439 |
Dining & Entertaining |
10 |
A |
dining-and-entertaining |
6/438 |
none |
2 |
0 |
2 |
Health & Beauty |
10 |
A |
beauty |
|
none |
426 |
425 |
6/425/426 |
Outdoor Grills & Accessories |
10 |
A |
outdoor-grills-and-accessories |
6/425 |
none |
13 |
12 |
12/13 |
Womens Fashion |
10 |
A |
womens-fashion |
12 |
none |
408 |
406 |
6/406/408 |
Bean Bags |
20 |
A |
bean-bags |
6/406 |
none |
443 |
438 |
6/438/443 |
Cutlery & Knife Accessories |
20 |
A |
cutlery-and-knife-accessories |
6/438 |
none |
159 |
6 |
6/159 |
Decor |
20 |
A |
decor |
6 |
none |
6 |
0 |
6 |
Home & Decor |
20 |
A |
home-and-decor |
|
none |
591 |
589 |
2/589/591 |
Tea & Coffee |
20 |
A |
tea-and-coffee |
2/589 |
none |
38 |
13 |
12/13/38 |
Bags |
30 |
A |
women-bags |
12/13 |
none |
12 |
0 |
12 |
Fashion |
30 |
A |
fashion |
|
none |
454 |
438 |
6/438/454 |
Kitchen Utensils & Gadgets |
30 |
A |
kitchen-gadgets |
6/438 |
none |
547 |
544 |
248/544/547 |
Lunch Bags & Boxes |
30 |
A |
lunch-bags-and-boxes |
248/544 |
none |
168 |
6 |
6/168 |
Small Appliances |
30 |
A |
small-appliances |
6 |
none |
163 |
159 |
6/159/163 |
Ashtrays |
40 |
A |
ashtrays |
6/159 |
none |
189 |
184 |
6/184/189 |
Storage & Home Organization |
40 |
A |
storage-and-home-organization |
6/184 |
none |
184 |
6 |
6/184 |
Tools & Home Improvement |
40 |
A |
tools-and-home |
6 |
none |
476 |
438 |
6/438/476 |
Lunch Bags & Boxes |
50 |
A |
bags-boxes |
6/438 |
none |
207 |
0 |
207 |
Sport & Fitness |
50 |
A |
sport-fitness |
|
none |
479 |
438 |
6/438/479 |
Bowls & Containers |
60 |
A |
bowls |
6/438 |
none |
248 |
0 |
248 |
Kids Corner |
60 |
A |
kids-corner |
|
none |
406 |
6 |
6/406 |
Furniture |
70 |
A |
furniture |
6 |
none |
425 |
6 |
6/425 |
Outdoor |
80 |
A |
outdoor |
6 |
none |
438 |
6 |
6/438 |
Kitchen & Dining |
90 |
A |
kitchen-dining |
6 |
none |
544 |
248 |
248/544 |
School & Stationery |
90 |
A |
school-and-stationery |
248 |
none |
445 |
6 |
6/445 |
Household Supplies |
100 |
A |
house-supplies |
6 |
none |
589 |
2 |
2/589 |
Food & Beverages |
120 |
A |
f-and-b |
2 |
none |
183 |
168 |
6/168/183 |
Kitchen Tools & Accessories |
150 |
A |
kitchen-tools-and-accessories |
6/168 |
none |
243 |
207 |
207/243 |
Camping |
160 |
A |
camping |
207 |
none |
481 |
168 |
6/168/481 |
Choppers |
180 |
A |
choppers |
6/168 |
none |