Query time 0.00097
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.75"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"parent",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 17,
"rows_produced_per_join": 0,
"filtered": "1.01",
"index_condition": "(`cscart`.`cscart_categories`.`id_path` like '417/%')",
"cost_info": {
"read_cost": "24.78",
"eval_cost": "0.03",
"prefix_cost": "24.81",
"data_read_per_join": "718"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"ab__fn_category_status",
"ab__fn_label_color",
"ab__fn_label_background",
"ab__fn_use_origin_image",
"ab__lc_catalog_image_control"
],
"attached_condition": "((`cscart`.`cscart_categories`.`parent_id` = 417) and ((`cscart`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`cscart`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`cscart`.`cscart_categories`.`usergroup_ids`)) and (`cscart`.`cscart_categories`.`status` = 'A') and (`cscart`.`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": [
"cscart.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.17",
"eval_cost": "0.03",
"prefix_cost": "25.02",
"data_read_per_join": "583"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"ab__fn_label_text",
"ab__fn_label_show"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"cscart.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.64",
"eval_cost": "0.10",
"prefix_cost": "25.75",
"data_read_per_join": "892"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
ab__lc_catalog_image_control |
ab__fn_category_status |
ab__fn_label_color |
ab__fn_label_background |
ab__fn_use_origin_image |
ab__fn_label_text |
ab__fn_label_show |
| 418 |
417 |
417/418 |
Штукатурка |
10 |
A |
0 |
0 |
shtukaturka |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 419 |
417 |
417/419 |
Клей |
20 |
A |
0 |
0 |
kley |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 420 |
417 |
417/420 |
Ровнитель для пола |
30 |
A |
0 |
0 |
rovnitel-dlya-pola |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 421 |
417 |
417/421 |
Наливной пол |
40 |
A |
0 |
0 |
nalivnoy-pol |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 422 |
417 |
417/422 |
Шпаклевка финишная |
50 |
A |
0 |
0 |
shpaklevka-finishnaya-polimernaya-superbelaya |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 423 |
417 |
417/423 |
Шпаклевка цементно-полимерная |
60 |
A |
0 |
0 |
shpaklevka-cementno-polimernaya |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 424 |
417 |
417/424 |
Ремонтный состав для бетона |
70 |
A |
0 |
0 |
remontnyy-sostav-dlya-betona |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 425 |
417 |
417/425 |
Штукатурка цементная |
80 |
A |
0 |
0 |
shtukaturka-cementnaya |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 426 |
417 |
417/426 |
Штукатурка декоративная |
90 |
A |
0 |
0 |
shtukaturka-dekorativnaya |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 428 |
417 |
417/428 |
Кладочная смесь для газобетонных блоков |
100 |
A |
0 |
0 |
kladochnaya-smes-dlya-gazobetonnyh-blokov |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 429 |
417 |
417/429 |
Кладочная смесь |
110 |
A |
0 |
0 |
kladochnaya-smes |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 430 |
417 |
417/430 |
Песчано-цементная смесь |
120 |
A |
0 |
0 |
peschano-cementnaya-smes |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 431 |
417 |
417/431 |
Пескобетон |
130 |
A |
0 |
0 |
peskobeton |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 432 |
417 |
417/432 |
Гидроизоляция обмазочная |
140 |
A |
0 |
0 |
gidroizolyaciya-obmazochnaya |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 433 |
417 |
417/433 |
Гидроизоляция проникающая |
150 |
A |
0 |
0 |
gidroizolyaciya-pronikayuschaya |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 434 |
417 |
417/434 |
Грунтовка |
160 |
A |
0 |
0 |
gruntovka |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 435 |
417 |
417/435 |
Кладочная смесь для газоблоков |
170 |
A |
0 |
0 |
kladochnaya-smes-dlya-gazoblokov |
417 |
none |
N |
#ffffff |
#222222 |
N |
|
N |