Query time 0.00264
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "33.24"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 73,
"rows_produced_per_join": 0,
"filtered": "0.26",
"index_condition": "(`test_uchur_k`.`cscart_categories`.`id_path` like '54/%')",
"cost_info": {
"read_cost": "33.09",
"eval_cost": "0.02",
"prefix_cost": "33.11",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"its_podarki",
"size_mobile_app",
"ab__lc_catalog_image_control"
],
"attached_condition": "((`test_uchur_k`.`cscart_categories`.`company_id` = 1) and ((`test_uchur_k`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`test_uchur_k`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`test_uchur_k`.`cscart_categories`.`usergroup_ids`))) and (`test_uchur_k`.`cscart_categories`.`status` = 'A') and (`test_uchur_k`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"test_uchur_k.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.02",
"prefix_cost": "33.18",
"data_read_per_join": "649"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"description"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"key_length": "210",
"ref": [
"test_uchur_k.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.02",
"prefix_cost": "33.24",
"data_read_per_join": "330"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
its_podarki |
size_mobile_app |
seo_name |
seo_path |
ab__lc_catalog_image_control |
description |
| 239 |
75 |
54/75/239 |
Аккумуляторы |
0 |
A |
1 |
1 |
N |
|
akkumulyatory |
54/75 |
none |
|
| 228 |
75 |
54/75/228 |
Выносные кнопки |
0 |
A |
1 |
1 |
N |
|
vynosnye-knopki |
54/75 |
none |
|
| 102 |
101 |
54/62/101/102 |
Детали механизмов |
0 |
A |
1 |
1 |
N |
|
detali-mehanizmov |
54/62/101 |
none |
|
| 68 |
54 |
54/68 |
Духовые манки |
0 |
A |
1 |
1 |
N |
|
duhovye-manki |
54 |
none |
|
| 264 |
75 |
54/75/264 |
Зарядные устройства |
0 |
A |
1 |
1 |
N |
|
zaryadnye-ustroystva |
54/75 |
none |
|
| 324 |
265 |
54/62/265/324 |
Карабины |
0 |
A |
1 |
1 |
N |
|
karabiny |
54/62/265 |
none |
|
| 76 |
75 |
54/75/76 |
Налобные фонари |
0 |
A |
1 |
1 |
N |
|
nalobnye-fonari |
54/75 |
none |
|
| 388 |
101 |
54/62/101/388 |
Переводчики огня и детали УСМ |
0 |
A |
1 |
1 |
N |
|
perevodchiki-ognya-i-detali-usm |
54/62/101 |
none |
|
| 241 |
54 |
54/241 |
Ружья |
0 |
A |
1 |
1 |
N |
|
ruzhya |
54 |
none |
|
| 375 |
101 |
54/62/101/375 |
Рукоятки взвода |
0 |
A |
1 |
1 |
N |
|
rukoyatki-vzvoda |
54/62/101 |
none |
|
| 253 |
75 |
54/75/253 |
Ручные фонари |
0 |
A |
1 |
1 |
N |
|
ruchnye-fonari |
54/75 |
none |
|
| 221 |
54 |
54/221 |
Скрадки |
0 |
A |
1 |
1 |
N |
|
skradki |
54 |
none |
|
| 131 |
75 |
54/75/131 |
Тактические фонари |
0 |
A |
1 |
1 |
N |
|
takticheskie-fonari |
54/75 |
none |
|
| 75 |
54 |
54/75 |
Фонари и комплектующие |
0 |
A |
1 |
1 |
N |
|
fonari-i-komplektuyuschie |
54 |
none |
|
| 73 |
54 |
54/73 |
Чехлы, кейсы |
0 |
A |
1 |
1 |
N |
|
chehly-keysy |
54 |
none |
|