Query time 0.00154
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2616.29"
},
"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`.`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 '203/%') and (`mobikul_delivery_boy_livedemo`.`cscart_categories`.`category_id` <> 264) and (`mobikul_delivery_boy_livedemo`.`cscart_categories`.`parent_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": 309,
"rows_produced_per_join": 25956,
"filtered": "100.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "2.40",
"eval_cost": "2595.60",
"prefix_cost": "2616.29",
"data_read_per_join": "42M"
},
"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 |
| 216 |
215 |
203/215/216 |
Backpacks |
10 |
A |
0 |
0 |
backpacks |
203/215 |
| 204 |
203 |
203/204 |
Bikes |
10 |
A |
0 |
0 |
bikes |
203 |
| 210 |
204 |
203/204/210 |
Comfort & Cruisers |
10 |
A |
0 |
0 |
comfort-and-cruisers |
203/204 |
| 212 |
211 |
203/211/212 |
Golf Clubs |
10 |
A |
0 |
0 |
golf-clubs |
203/211 |
| 211 |
203 |
203/211 |
Golf |
20 |
A |
0 |
0 |
golf |
203 |
| 213 |
211 |
203/211/213 |
Golf Balls |
20 |
A |
0 |
0 |
golf-balls |
203/211 |
| 209 |
204 |
203/204/209 |
Road Bikes |
20 |
A |
0 |
0 |
road-bikes |
203/204 |
| 217 |
215 |
203/215/217 |
Sleeping Bags |
20 |
A |
0 |
0 |
sleeping-bags |
203/215 |
| 215 |
203 |
203/215 |
Camping |
30 |
A |
0 |
0 |
camping |
203 |
| 214 |
211 |
203/211/214 |
Golf Bags & Carts |
30 |
A |
0 |
0 |
golf-bags-and-carts |
203/211 |
| 208 |
204 |
203/204/208 |
Mountain Bikes |
30 |
A |
0 |
0 |
mountain-bikes |
203/204 |
| 218 |
215 |
203/215/218 |
Tents |
30 |
A |
0 |
0 |
tents |
203/215 |