Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.04076244,
"filesort": {
"sort_key": "cscart_categories.is_trash, cscart_categories.position, cscart_category_descriptions.category",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "id_path",
"key_length": "767",
"used_key_parts": ["id_path"],
"loops": 1,
"rows": 12,
"cost": 0.01517752,
"filtered": 100,
"index_condition": "cscart_categories.id_path like '203/%' and cscart_categories.category_id <> 264",
"attached_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` = 'A' and cscart_categories.parent_id <> 264 and cscart_categories.storefront_id in (0,1)"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["category_id", "lang_code"],
"ref": [
"u985510652_ecartify_dev.cscart_categories.category_id",
"const"
],
"loops": 12,
"rows": 1,
"cost": 0.01155248,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"u985510652_ecartify_dev.cscart_categories.category_id",
"const",
"const",
"const"
],
"loops": 12,
"rows": 1,
"cost": 0.01403244,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
}
}
]
}
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
description |
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 |