Query time 0.00082
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.82"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 7,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "((`danishecarter_latest`.`cscart_categories`.`category_id` <> 264) and (`danishecarter_latest`.`cscart_categories`.`category_id` in (166,177,179,223,224,293,302)))",
"cost_info": {
"read_cost": "16.78",
"eval_cost": "0.03",
"prefix_cost": "16.81",
"data_read_per_join": "481"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash"
],
"attached_condition": "(((`danishecarter_latest`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`danishecarter_latest`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`danishecarter_latest`.`cscart_categories`.`usergroup_ids`)) and (`danishecarter_latest`.`cscart_categories`.`status` = 'A') and (`danishecarter_latest`.`cscart_categories`.`parent_id` <> 264) and (`danishecarter_latest`.`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": [
"danishecarter_latest.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.14",
"eval_cost": "0.03",
"prefix_cost": "16.98",
"data_read_per_join": "434"
},
"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": [
"danishecarter_latest.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.70",
"eval_cost": "0.14",
"prefix_cost": "17.82",
"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 |
company_id |
storefront_id |
seo_name |
seo_path |
302 |
293 |
293/302 |
Semi-trailer |
0 |
A |
0 |
0 |
semi-trailer |
293 |
293 |
0 |
293 |
Vehicles |
0 |
A |
0 |
0 |
vehicles |
|
166 |
0 |
166 |
Electronics |
10 |
A |
0 |
0 |
electronics |
|
224 |
223 |
223/224 |
Men's Clothing |
10 |
A |
0 |
0 |
mens-clothing |
223 |
223 |
0 |
223 |
Apparel |
30 |
A |
0 |
0 |
apparel |
|
179 |
177 |
166/177/179 |
MP3 Players |
30 |
A |
0 |
0 |
mp3-players |
166/177 |
177 |
166 |
166/177 |
MP3 Players |
50 |
A |
0 |
0 |
mp3-players |
166 |