Query time 0.00108
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_categories.is_trash, cscart_categories.position, cscart_category_descriptions.category",
"temporary_table": {
"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"],
"rowid_filter": {
"range": {
"key": "id_path",
"used_key_parts": ["id_path"]
},
"rows": 12,
"selectivity_pct": 5.529953917
},
"rows": 11,
"filtered": 5.529953957,
"attached_condition": "cscart_categories.company_id = 1 and (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 '265/280/283/%' 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": ["noframes_angrybeaver.cscart_categories.category_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'ru')"
},
"table": {
"table_name": "cscart_seo_names",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "210",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"ref": [
"noframes_angrybeaver.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'ru')"
}
}
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
| 1636 |
283 |
265/280/283/1636 |
Target |
0 |
A |
1 |
1 |
target |
265/280/283 |
| 1638 |
283 |
265/280/283/1638 |
Abitare |
0 |
A |
1 |
1 |
abitare |
265/280/283 |
| 1677 |
283 |
265/280/283/1677 |
Aurora |
0 |
A |
1 |
1 |
aurora |
265/280/283 |
| 1641 |
283 |
265/280/283/1641 |
Continent |
0 |
A |
1 |
1 |
continent |
265/280/283 |
| 1674 |
283 |
265/280/283/1674 |
Cos |
0 |
A |
1 |
1 |
cos |
265/280/283 |
| 1669 |
283 |
265/280/283/1669 |
Desert |
0 |
A |
1 |
1 |
desert |
265/280/283 |
| 1678 |
283 |
265/280/283/1678 |
Dune |
0 |
A |
1 |
1 |
dune |
265/280/283 |
| 1675 |
283 |
265/280/283/1675 |
Monochrome |
0 |
A |
1 |
1 |
monochrome |
265/280/283 |
| 1681 |
283 |
265/280/283/1681 |
Pafos |
0 |
A |
1 |
1 |
pafos |
265/280/283 |
| 1649 |
283 |
265/280/283/1649 |
Primo |
0 |
A |
1 |
1 |
primo |
265/280/283 |
| 1629 |
283 |
265/280/283/1629 |
Simmetrika |
0 |
A |
1 |
1 |
simmetrika |
265/280/283 |
| 667 |
283 |
265/280/283/667 |
Эпоха |
0 |
A |
1 |
1 |
epoha |
265/280/283 |