Query time 0.00179
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.98"
},
"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": 37,
"rows_produced_per_join": 0,
"filtered": "0.26",
"index_condition": "(`test_uchur_k`.`cscart_categories`.`id_path` like '11/%')",
"cost_info": {
"read_cost": "16.90",
"eval_cost": "0.01",
"prefix_cost": "16.91",
"data_read_per_join": "523"
},
"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.02",
"eval_cost": "0.01",
"prefix_cost": "16.94",
"data_read_per_join": "329"
},
"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.02",
"eval_cost": "0.01",
"prefix_cost": "16.98",
"data_read_per_join": "167"
},
"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 |
| 212 |
89 |
11/88/89/212 |
Балансиры, раттлины |
0 |
A |
1 |
1 |
N |
|
balansiry-rattliny |
11/88/89 |
none |
|
| 254 |
89 |
11/88/89/254 |
Блесна |
0 |
A |
1 |
1 |
N |
|
blesna |
11/88/89 |
none |
|
| 351 |
91 |
11/88/91/351 |
Блесна МУНХА |
0 |
A |
1 |
1 |
N |
|
blesna-munha |
11/88/91 |
none |
|
| 12 |
11 |
11/12 |
Лески и шнуры |
0 |
A |
1 |
1 |
N |
|
leski-i-shnury |
11 |
none |
|
| 93 |
89 |
11/88/89/93 |
Мормышки |
0 |
A |
1 |
1 |
N |
|
mormyshki |
11/88/89 |
none |
|
| 90 |
89 |
11/88/89/90 |
Мухи и нимфы |
0 |
A |
1 |
1 |
N |
|
muhi-i-nimfy |
11/88/89 |
none |
|
| 383 |
89 |
11/88/89/383 |
Пули |
0 |
A |
1 |
1 |
N |
|
puli |
11/88/89 |
none |
|
| 15 |
11 |
11/15 |
Летние катушки |
10 |
A |
1 |
1 |
N |
|
letnie-katushki |
11 |
none |
|
| 13 |
12 |
11/12/13 |
Плетенные шнуры |
20 |
A |
1 |
1 |
N |
|
pletennye-shnury |
11/12 |
none |
|
| 17 |
11 |
11/17 |
Спиннинги |
30 |
A |
1 |
1 |
N |
|
spinningi |
11 |
none |
|