Query time 0.00110
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.49"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.05"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 7,
"rows_produced_per_join": 0,
"filtered": "0.71",
"index_condition": "((`aomnia_com`.`cscart_categories`.`id_path` like '968/989/%') and (`aomnia_com`.`cscart_categories`.`category_id` <> 264))",
"cost_info": {
"read_cost": "3.40",
"eval_cost": "0.01",
"prefix_cost": "3.41",
"data_read_per_join": "133"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position"
],
"attached_condition": "((`aomnia_com`.`cscart_categories`.`parent_id` = 989) and ((`aomnia_com`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`aomnia_com`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`aomnia_com`.`cscart_categories`.`usergroup_ids`))) and (`aomnia_com`.`cscart_categories`.`status` = 'A') and (`aomnia_com`.`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": [
"aomnia_com.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.01",
"prefix_cost": "3.43",
"data_read_per_join": "194"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"mega_m_category_banner_url",
"mega_m_category_svg_icon"
]
}
},
{
"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": [
"aomnia_com.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.01",
"eval_cost": "0.01",
"prefix_cost": "3.45",
"data_read_per_join": "86"
},
"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 |
seo_name |
seo_path |
mega_m_category_banner_url |
mega_m_category_svg_icon |
| 993 |
989 |
968/989/993 |
Ergonomic Keyboards |
40 |
A |
0 |
0 |
ergonomic-keyboards |
968/989 |
|
|
| 995 |
989 |
968/989/995 |
Gaming Mice |
60 |
A |
0 |
0 |
gaming-mice |
968/989 |
|
|
| 996 |
989 |
968/989/996 |
Keyboard & Mouse Combos |
70 |
A |
0 |
0 |
keyboard-and-mouse-combos |
968/989 |
|
|
| 992 |
989 |
968/989/992 |
Mechanical Keyboards |
30 |
A |
0 |
0 |
mechanical-keyboards |
968/989 |
|
|
| 994 |
989 |
968/989/994 |
Wired / Wireless Mice |
50 |
A |
0 |
0 |
wired-wireless-mice |
968/989 |
|
|
| 990 |
989 |
968/989/990 |
Wired Keyboards |
10 |
A |
0 |
0 |
wired-keyboards |
968/989 |
|
|
| 991 |
989 |
968/989/991 |
Wireless Keyboards |
20 |
A |
0 |
0 |
wireless-keyboards |
968/989 |
|
|