Query time 0.00005
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "11.14"
},
"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": 7,
"rows_produced_per_join": 0,
"filtered": "1.96",
"index_condition": "(`44mm_ru`.`cscart_categories`.`id_path` like '203/%')",
"cost_info": {
"read_cost": "10.78",
"eval_cost": "0.03",
"prefix_cost": "10.81",
"data_read_per_join": "575"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"ab__lc_catalog_image_control"
],
"attached_condition": "((`44mm_ru`.`cscart_categories`.`company_id` = 1) and ((`44mm_ru`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`44mm_ru`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`44mm_ru`.`cscart_categories`.`usergroup_ids`)) and (`44mm_ru`.`cscart_categories`.`status` = 'A') and (`44mm_ru`.`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": [
"44mm_ru.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.14",
"eval_cost": "0.03",
"prefix_cost": "10.97",
"data_read_per_join": "678"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"ab__custom_category_h1"
]
}
},
{
"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": [
"44mm_ru.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.14",
"eval_cost": "0.03",
"prefix_cost": "11.14",
"data_read_per_join": "238"
},
"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 |
seo_name |
seo_path |
ab__lc_catalog_image_control |
ab__custom_category_h1 |
204 |
203 |
203/204 |
Шкафы телекоммуникационные напольные |
10 |
A |
1 |
1 |
shkafy-telekommunikacionnye-napolnye |
203 |
none |
Телекоммуникационные напольные шкафы |
208 |
203 |
203/208 |
Шкафы телекоммуникационные настенные |
20 |
A |
1 |
1 |
shkafy-telekommunikacionnye-nastennye |
203 |
none |
|
212 |
203 |
203/212 |
Стойки телекоммуникационные |
30 |
A |
1 |
1 |
stojki-telekommunikacionnye |
203 |
none |
|
211 |
203 |
203/211 |
Каркасы телекоммуникационные |
40 |
A |
1 |
1 |
karkasy-telekommunikacionnye |
203 |
none |
|
414 |
203 |
203/414 |
Полки к шкафам и стойкам |
40 |
A |
1 |
1 |
polki-k-shkafam-i-stoykam |
203 |
none |
|
220 |
203 |
203/220 |
Оптические кроссы |
50 |
A |
1 |
1 |
opticheskie-krossy |
203 |
none |
|
224 |
203 |
203/224 |
Аксессуары для телекоммуникационных шкафов |
60 |
A |
1 |
1 |
aksessuary-dlya-telekommunikacionnyh-shkafov |
203 |
none |
|