Query time 0.00106
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.97"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "q_categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"parent",
"id_path"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 14,
"rows_produced_per_join": 0,
"filtered": "0.52",
"cost_info": {
"read_cost": "14.00",
"eval_cost": "0.01",
"prefix_cost": "16.80",
"data_read_per_join": "196"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"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`.`id_path` like '248/249/%'))"
}
},
{
"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": "0.07",
"eval_cost": "0.01",
"prefix_cost": "16.89",
"data_read_per_join": "225"
},
"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": "0.07",
"eval_cost": "0.01",
"prefix_cost": "16.97",
"data_read_per_join": "125"
},
"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 |
250 |
249 |
248/249/250 |
Dolls & Accessories |
10 |
A |
dolls-and-accessories |
248/249 |
none |
251 |
249 |
248/249/251 |
Cars & Trucks |
20 |
A |
cars-and-trucks |
248/249 |
none |
252 |
249 |
248/249/252 |
Building & Blocks |
30 |
A |
building-and-blocks |
248/249 |
none |
253 |
249 |
248/249/253 |
Puzzles & Boardgames |
40 |
A |
puzzles-and-boardgames |
248/249 |
none |
254 |
249 |
248/249/254 |
Stuffed Animals & Plush |
50 |
A |
stuffed-animals-and-plush |
248/249 |
none |
255 |
249 |
248/249/255 |
Arts & Crafts |
60 |
A |
arts-and-crafts |
248/249 |
none |
256 |
249 |
248/249/256 |
Educational |
70 |
A |
educational |
248/249 |
none |
271 |
249 |
248/249/271 |
Bath Toys |
80 |
A |
bath-toys |
248/249 |
none |
433 |
249 |
248/249/433 |
Money Banks |
90 |
A |
money-banks |
248/249 |
none |
434 |
249 |
248/249/434 |
Hobby |
100 |
A |
hobby |
248/249 |
none |
459 |
249 |
248/249/459 |
Action & Toy Figures |
110 |
A |
action-and-toy-figures |
248/249 |
none |
484 |
249 |
248/249/484 |
Toy Balls |
130 |
A |
toy-balls-en |
248/249 |
none |
533 |
249 |
248/249/533 |
Remote Control Toys |
140 |
A |
remote-control-toys |
248/249 |
none |
535 |
249 |
248/249/535 |
Drones |
150 |
A |
drones |
248/249 |
none |
579 |
249 |
248/249/579 |
Baby & Toddler Toys |
160 |
A |
baby-and-toddler-toys |
248/249 |
none |
595 |
249 |
248/249/595 |
Play Mats |
170 |
A |
play-mats |
248/249 |
none |