Query time 0.00245
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "74.41"
},
"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": 30,
"rows_produced_per_join": 0,
"filtered": "3.33",
"index_condition": "(`portal`.`q_categories`.`category_id` in (6,7,61,64,248,257,264,266,272,301,406,408,409,207,469,470,472,474,475,12,555,564,566,567,249,579,147,584,598,615))",
"cost_info": {
"read_cost": "71.81",
"eval_cost": "0.20",
"prefix_cost": "72.01",
"data_read_per_join": "2K"
},
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.20",
"prefix_cost": "73.21",
"data_read_per_join": "3K"
},
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.20",
"prefix_cost": "74.41",
"data_read_per_join": "1K"
},
"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 |
7 |
6 |
6/7 |
Bed & Bath |
10 |
A |
bed-and-bath |
6 |
none |
470 |
469 |
207/469/470 |
Camping & Hiking |
10 |
A |
camping-and-hiking |
207/469 |
none |
249 |
248 |
248/249 |
Toys |
10 |
A |
toys |
248 |
none |
564 |
555 |
12/555/564 |
Travel Accessories |
10 |
A |
travel-accessories |
12/555 |
none |
408 |
406 |
6/406/408 |
Bean Bags |
20 |
A |
bean-bags |
6/406 |
none |
61 |
7 |
6/7/61 |
Bedding |
20 |
A |
bedding |
6/7 |
none |
264 |
257 |
248/257/264 |
Garden & Pool |
20 |
A |
garden-pool |
248/257 |
none |
6 |
0 |
6 |
Home & Decor |
20 |
A |
home-and-decor |
|
none |
257 |
248 |
248/257 |
Outdoor Play |
20 |
A |
outdoor-play |
248 |
none |
147 |
7 |
6/7/147 |
Bathroom |
30 |
A |
bathroom |
6/7 |
none |
409 |
406 |
6/406/409 |
Couch |
30 |
A |
couch |
6/406 |
none |
12 |
0 |
12 |
Fashion |
30 |
A |
fashion |
|
none |
567 |
406 |
6/406/567 |
Chairs |
40 |
A |
chairs |
6/406 |
none |
555 |
12 |
12/555 |
Bags & Luggage |
50 |
A |
bags-and-luggage |
12 |
none |
207 |
0 |
207 |
Sport & Fitness |
50 |
A |
sport-fitness |
|
none |
248 |
0 |
248 |
Kids Corner |
60 |
A |
kids-corner |
|
none |
615 |
469 |
207/469/615 |
Pool & Fun |
60 |
A |
pool-and-fun |
207/469 |
none |
406 |
6 |
6/406 |
Furniture |
70 |
A |
furniture |
6 |
none |
566 |
248 |
248/566 |
Baby Feeding |
100 |
A |
baby-feeding |
248 |
none |
598 |
248 |
248/598 |
Nursery Bedding & Mattresses |
120 |
A |
nursery-bedding-and-mattresses |
248 |
none |
579 |
249 |
248/249/579 |
Baby & Toddler Toys |
160 |
A |
baby-and-toddler-toys |
248/249 |
none |
469 |
207 |
207/469 |
Outdoor Recreation |
180 |
A |
outdoor-recreation |
207 |
none |