Query time 0.00081
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.07497897,
"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": "ALL",
"possible_keys": ["PRIMARY", "c_status", "parent", "p_category_id"],
"loops": 1,
"rows": 99,
"cost": 0.0269918,
"filtered": 17.17171669,
"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.category_id <> 264 and cscart_categories.parent_id <> 264 and cscart_categories.storefront_id in (0,1) and cscart_categories.category_id in (167,169,203,211,214,223,287,288,289,304,305,460,475,219,495,498,500)"
}
},
{
"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.cscart_categories.category_id", "const"],
"loops": 17,
"rows": 1,
"cost": 0.01766308,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'zh')"
}
},
{
"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.cscart_categories.category_id",
"const",
"const",
"const"
],
"loops": 17,
"rows": 1,
"cost": 0.03032409,
"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 |
seo_name |
seo_path |
| 289 |
288 |
287/288/289 |
DRESSES |
0 |
A |
0 |
0 |
dresses |
287/288 |
| 495 |
219 |
219/495 |
Fiction |
0 |
A |
0 |
0 |
fiction |
219 |
| 500 |
203 |
203/500 |
Fitness |
0 |
A |
0 |
0 |
fitness |
203 |
| 304 |
287 |
287/304 |
Men |
0 |
A |
0 |
0 |
men |
287 |
| 498 |
219 |
219/498 |
Non-Fiction |
0 |
A |
0 |
0 |
non-fiction |
219 |
| 305 |
304 |
287/304/305 |
T-Shirts |
0 |
A |
0 |
0 |
t-shirts |
287/304 |
| 288 |
287 |
287/288 |
Women |
0 |
A |
0 |
0 |
women |
287 |
| 460 |
0 |
460 |
Toys & Games |
2 |
A |
0 |
0 |
toys-and-games |
|
| 287 |
0 |
287 |
Fashion |
4 |
A |
0 |
0 |
fashion |
|
| 223 |
0 |
223 |
Apparel |
6 |
A |
0 |
0 |
apparel |
|
| 211 |
203 |
203/211 |
Golf |
20 |
A |
0 |
0 |
golf |
203 |
| 169 |
167 |
167/169 |
Laptops |
20 |
A |
0 |
0 |
laptops |
167 |
| 475 |
460 |
460/475 |
Puzzles |
20 |
A |
0 |
0 |
puzzles-en |
460 |
| 214 |
211 |
203/211/214 |
Golf Bags & Carts |
30 |
A |
0 |
0 |
golf-bags-and-carts |
203/211 |