Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"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": "ref",
"possible_keys": ["c_status", "parent", "id_path"],
"key": "parent",
"key_length": "3",
"used_key_parts": ["parent_id"],
"ref": ["const"],
"rows": 10,
"filtered": 11.11111069,
"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.id_path like '266/286/%' 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": ["live_clonned.cscart_categories.category_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'es')"
}
},
{
"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": [
"live_clonned.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows": 2,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'es')"
}
}
]
}
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
like_count |
seo_name |
seo_path |
287 |
286 |
266/286/287 |
Tops |
10 |
A |
0 |
1 |
9 |
tops-es |
266/286 |
288 |
286 |
266/286/288 |
Bottoms |
20 |
A |
0 |
1 |
4 |
bottoms-es |
266/286 |
289 |
286 |
266/286/289 |
Vestidos |
30 |
A |
0 |
1 |
0 |
vestidos |
266/286 |
290 |
286 |
266/286/290 |
Faldas |
40 |
A |
0 |
1 |
10 |
faldas |
266/286 |
291 |
286 |
266/286/291 |
Suéters |
50 |
A |
0 |
1 |
3 |
sueters |
266/286 |
292 |
286 |
266/286/292 |
Abrigos |
60 |
A |
0 |
1 |
4 |
abrigos |
266/286 |
294 |
286 |
266/286/294 |
Accesorios |
70 |
A |
0 |
1 |
5 |
accesorios |
266/286 |
295 |
286 |
266/286/295 |
Bolsas |
80 |
A |
0 |
1 |
1 |
bolsas |
266/286 |
293 |
286 |
266/286/293 |
Ropa Deportiva |
90 |
A |
0 |
1 |
2 |
ropa-deportiva |
266/286 |
296 |
286 |
266/286/296 |
Trajes De Baño |
100 |
A |
0 |
1 |
0 |
trajes-de-bano |
266/286 |