Query time 0.00131
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1918.62"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"rows_examined_per_scan": 84,
"rows_produced_per_join": 1,
"filtered": "1.19",
"cost_info": {
"read_cost": "9.15",
"eval_cost": "0.10",
"prefix_cost": "9.25",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash"
],
"attached_condition": "((`mobikul_delivery_boy_livedemo`.`cscart_categories`.`parent_id` = 166) and ((`mobikul_delivery_boy_livedemo`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`mobikul_delivery_boy_livedemo`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`mobikul_delivery_boy_livedemo`.`cscart_categories`.`usergroup_ids`))) and (`mobikul_delivery_boy_livedemo`.`cscart_categories`.`status` = 'A') and (`mobikul_delivery_boy_livedemo`.`cscart_categories`.`id_path` like '166/%') and (`mobikul_delivery_boy_livedemo`.`cscart_categories`.`category_id` <> 264) and (`mobikul_delivery_boy_livedemo`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "ALL",
"rows_examined_per_scan": 84,
"rows_produced_per_join": 84,
"filtered": "100.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "0.64",
"eval_cost": "8.40",
"prefix_cost": "18.29",
"data_read_per_join": "254K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
],
"attached_condition": "<if>(is_not_null_compl(cscart_category_descriptions), ((`mobikul_delivery_boy_livedemo`.`cscart_category_descriptions`.`category_id` = `mobikul_delivery_boy_livedemo`.`cscart_categories`.`category_id`) and (`mobikul_delivery_boy_livedemo`.`cscart_category_descriptions`.`lang_code` = 'en')), true)"
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ALL",
"rows_examined_per_scan": 226,
"rows_produced_per_join": 18984,
"filtered": "100.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "1.93",
"eval_cost": "1898.40",
"prefix_cost": "1918.62",
"data_read_per_join": "31M"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
],
"attached_condition": "<if>(is_not_null_compl(cscart_seo_names), ((`mobikul_delivery_boy_livedemo`.`cscart_seo_names`.`object_id` = `mobikul_delivery_boy_livedemo`.`cscart_categories`.`category_id`) and (`mobikul_delivery_boy_livedemo`.`cscart_seo_names`.`type` = 'c') and (`mobikul_delivery_boy_livedemo`.`cscart_seo_names`.`dispatch` = '') and (`mobikul_delivery_boy_livedemo`.`cscart_seo_names`.`lang_code` = 'en')), true)"
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
| 175 |
166 |
166/175 |
Car Electronics |
20 |
A |
0 |
0 |
car-electronics |
166 |
| 174 |
166 |
166/174 |
TV & Video |
30 |
A |
0 |
0 |
tv-and-video |
166 |
| 234 |
166 |
166/234 |
Cell Phones |
40 |
A |
0 |
0 |
cell-phones |
166 |
| 177 |
166 |
166/177 |
MP3 Players |
50 |
A |
0 |
0 |
mp3-players |
166 |
| 196 |
166 |
166/196 |
Cameras & Photo |
60 |
A |
0 |
0 |
cameras-and-photo |
166 |
| 254 |
166 |
166/254 |
Game consoles |
70 |
A |
0 |
0 |
game-consoles |
166 |