Query time 0.00580
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": 6,
"selectivity_pct": 2.764976959
},
"rows": 4,
"filtered": 2.764976978,
"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/439/%' 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 |
| 1668 |
439 |
265/280/439/1668 |
Intellect |
0 |
A |
1 |
1 |
intellect |
265/280/439 |
| 1664 |
439 |
265/280/439/1664 |
Luna |
0 |
A |
1 |
1 |
luna |
265/280/439 |
| 1643 |
439 |
265/280/439/1643 |
Magnifico |
0 |
A |
1 |
1 |
magnifico |
265/280/439 |
| 1658 |
439 |
265/280/439/1658 |
Perla |
0 |
A |
1 |
1 |
perla |
265/280/439 |
| 1685 |
439 |
265/280/439/1685 |
Positiv |
0 |
A |
1 |
1 |
positiv |
265/280/439 |
| 455 |
439 |
265/280/439/455 |
Гармония |
0 |
A |
1 |
1 |
garmoniya |
265/280/439 |