Query time 0.00091
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "10.48"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"parent"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 8,
"rows_produced_per_join": 0,
"filtered": "2.00",
"cost_info": {
"read_cost": "8.00",
"eval_cost": "0.03",
"prefix_cost": "9.60",
"data_read_per_join": "670"
},
"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`.`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.16",
"eval_cost": "0.03",
"prefix_cost": "9.79",
"data_read_per_join": "545"
},
"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.59",
"eval_cost": "0.10",
"prefix_cost": "10.48",
"data_read_per_join": "833"
},
"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 |
| 298 |
0 |
298 |
Диваны |
150 |
A |
0 |
0 |
divany-i-kresla |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 301 |
0 |
301 |
Кровати и матрасы |
160 |
A |
0 |
0 |
krovati-i-matrasy |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 303 |
0 |
303 |
Шкафы |
170 |
A |
0 |
0 |
shkafy-i-stellazhi |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 309 |
0 |
309 |
Комоды и тумбы |
190 |
A |
0 |
0 |
tumby-i-komody |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 312 |
0 |
312 |
Пуфы и банкетки |
200 |
A |
0 |
0 |
pufy-i-banketki |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 333 |
0 |
333 |
Полки и стеллажи |
210 |
A |
0 |
0 |
polki-i-stellazhi |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 375 |
0 |
375 |
Стулья |
220 |
A |
0 |
0 |
stulya-i-kresla |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 392 |
0 |
392 |
Столы |
230 |
A |
0 |
0 |
stoly |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 399 |
0 |
399 |
Зеркала |
240 |
A |
0 |
0 |
zerkala |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 403 |
0 |
403 |
Кресла |
250 |
A |
0 |
0 |
kresla |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 406 |
0 |
406 |
Кухни |
260 |
A |
0 |
0 |
kuhni |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 412 |
0 |
412 |
Декор |
270 |
A |
0 |
0 |
dekor |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 414 |
0 |
414 |
Шторы |
280 |
A |
0 |
0 |
shtory |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 417 |
0 |
417 |
Отделочные материалы |
290 |
A |
0 |
0 |
otdelochnye-materialy |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 436 |
0 |
436 |
Напольные покрытия |
300 |
A |
0 |
0 |
napolnye-pokrytiya |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |