Query time 0.00325
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.00"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 29,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '5684/6536/6552/%')",
"cost_info": {
"read_cost": "41.49",
"eval_cost": "0.12",
"prefix_cost": "41.61",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"product_count",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`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": [
"webmarco.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.58",
"eval_cost": "0.12",
"prefix_cost": "42.31",
"data_read_per_join": "2K"
},
"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": [
"webmarco.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.58",
"eval_cost": "0.12",
"prefix_cost": "43.00",
"data_read_per_join": "1006"
},
"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 |
product_count |
seo_name |
seo_path |
6616 |
6582 |
5684/6536/6552/6582/6616 |
Air Mattress & Sleeping Pad Accessories |
10 |
A |
0 |
0 |
0 |
air-mattress-and-sleeping-pad-accessories |
5684/6536/6552/6582 |
6582 |
6552 |
5684/6536/6552/6582 |
Camp Furniture |
10 |
A |
0 |
0 |
17 |
camp-furniture |
5684/6536/6552 |
6835 |
6806 |
5684/6536/6552/6806/6835 |
Hunting & Survival Knives |
10 |
A |
0 |
0 |
0 |
hunting-and-survival-knives |
5684/6536/6552/6806 |
7568 |
7365 |
5684/6536/6552/7365/7568 |
Inner Tents |
10 |
A |
0 |
0 |
0 |
inner-tents |
5684/6536/6552/7365 |
7166 |
7126 |
5684/6536/6552/7126/7166 |
Portable Showers & Privacy Enclosures |
10 |
A |
0 |
0 |
0 |
portable-showers-and-privacy-enclosures |
5684/6536/6552/7126 |
6660 |
6582 |
5684/6536/6552/6582/6660 |
Air Mattresses |
20 |
A |
0 |
0 |
0 |
air-mattresses |
5684/6536/6552/6582 |
6730 |
6552 |
5684/6536/6552/6730 |
Camping Cookware & Dinnerware |
20 |
A |
0 |
0 |
0 |
camping-cookware-and-dinnerware |
5684/6536/6552 |
6859 |
6806 |
5684/6536/6552/6806/6859 |
Multifunction Tools & Knives |
20 |
A |
0 |
0 |
0 |
multifunction-tools-and-knives |
5684/6536/6552/6806 |
7206 |
7126 |
5684/6536/6552/7126/7206 |
Portable Toilets & Urination Devices |
20 |
A |
0 |
0 |
0 |
portable-toilets-and-urination-devices |
5684/6536/6552/7126 |
7579 |
7365 |
5684/6536/6552/7365/7579 |
Tent Footprints |
20 |
A |
0 |
0 |
0 |
tent-footprints |
5684/6536/6552/7365 |
6773 |
6552 |
5684/6536/6552/6773 |
Camping Lights & Lanterns |
30 |
A |
0 |
0 |
15 |
camping-lights-and-lanterns |
5684/6536/6552 |
6691 |
6582 |
5684/6536/6552/6582/6691 |
Cots |
30 |
A |
0 |
0 |
0 |
cots |
5684/6536/6552/6582 |
7588 |
7365 |
5684/6536/6552/7365/7588 |
Tent Poles & Stakes |
30 |
A |
0 |
0 |
0 |
tent-poles-and-stakes |
5684/6536/6552/7365 |
6806 |
6552 |
5684/6536/6552/6806 |
Camping Tools |
40 |
A |
0 |
0 |
63 |
camping-tools |
5684/6536/6552 |
7599 |
7365 |
5684/6536/6552/7365/7599 |
Tent Vestibules |
40 |
A |
0 |
0 |
0 |
tent-vestibules |
5684/6536/6552/7365 |
6890 |
6552 |
5684/6536/6552/6890 |
Chemical Hand Warmers |
50 |
A |
0 |
0 |
0 |
chemical-hand-warmers |
5684/6536/6552 |
6917 |
6552 |
5684/6536/6552/6917 |
Compression Sacks |
60 |
A |
0 |
0 |
0 |
compression-sacks |
5684/6536/6552 |
6955 |
6552 |
5684/6536/6552/6955 |
Hiking Pole Accessories |
70 |
A |
0 |
0 |
0 |
hiking-pole-accessories |
5684/6536/6552 |
6988 |
6552 |
5684/6536/6552/6988 |
Hiking Poles |
80 |
A |
0 |
0 |
0 |
hiking-poles |
5684/6536/6552 |
7019 |
6552 |
5684/6536/6552/7019 |
Mosquito Nets & Insect Screens |
90 |
A |
0 |
0 |
60 |
mosquito-nets-and-insect-screens |
5684/6536/6552 |
7064 |
6552 |
5684/6536/6552/7064 |
Navigational Compasses |
100 |
A |
0 |
0 |
0 |
navigational-compasses |
5684/6536/6552 |
7126 |
6552 |
5684/6536/6552/7126 |
Portable Toilets & Showers |
110 |
A |
0 |
0 |
0 |
portable-toilets-and-showers |
5684/6536/6552 |
7245 |
6552 |
5684/6536/6552/7245 |
Portable Water Filters & Purifiers |
120 |
A |
0 |
0 |
0 |
portable-water-filters-and-purifiers |
5684/6536/6552 |
7277 |
6552 |
5684/6536/6552/7277 |
Sleeping Bag Liners |
130 |
A |
0 |
0 |
0 |
sleeping-bag-liners |
5684/6536/6552 |
7303 |
6552 |
5684/6536/6552/7303 |
Sleeping Bags |
140 |
A |
0 |
0 |
0 |
sleeping-bags |
5684/6536/6552 |
7324 |
6552 |
5684/6536/6552/7324 |
Sleeping Pads |
150 |
A |
0 |
0 |
0 |
sleeping-pads |
5684/6536/6552 |
7365 |
6552 |
5684/6536/6552/7365 |
Tent Accessories |
160 |
A |
0 |
0 |
0 |
tent-accessories |
5684/6536/6552 |
7611 |
6552 |
5684/6536/6552/7611 |
Tents |
170 |
A |
0 |
0 |
4 |
tents |
5684/6536/6552 |
7625 |
6552 |
5684/6536/6552/7625 |
Windbreaks |
180 |
A |
0 |
0 |
0 |
windbreaks |
5684/6536/6552 |