Query time 0.00135
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.40"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_product_features_values",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 8,
"rows_produced_per_join": 3,
"filtered": "48.67",
"index_condition": "(`test_uchur_k`.`cscart_product_features_values`.`lang_code` = 'kk')",
"cost_info": {
"read_cost": "2.00",
"eval_cost": "0.39",
"prefix_cost": "2.80",
"data_read_per_join": "3K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
]
}
},
{
"table": {
"table_name": "pf",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"test_uchur_k.cscart_product_features_values.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "8.38",
"cost_info": {
"read_cost": "0.97",
"eval_cost": "0.03",
"prefix_cost": "4.16",
"data_read_per_join": "644"
},
"used_columns": [
"feature_id",
"feature_code",
"company_id",
"purpose",
"feature_style",
"filter_style",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"display_on_header",
"status",
"position",
"comparison",
"timestamp",
"updated_timestamp",
"yml2_exclude_prices"
],
"attached_condition": "((`test_uchur_k`.`pf`.`feature_type` <> 'G') and (`test_uchur_k`.`pf`.`status` = 'A') and (`test_uchur_k`.`pf`.`display_on_product` = 'Y') and ((`test_uchur_k`.`pf`.`categories_path` = '') or (`test_uchur_k`.`pf`.`categories_path` is null) or (0 <> find_in_set(54,`test_uchur_k`.`pf`.`categories_path`)) or (0 <> find_in_set(68,`test_uchur_k`.`pf`.`categories_path`))))"
}
},
{
"table": {
"table_name": "pf_groups",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"test_uchur_k.pf.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "19.00",
"cost_info": {
"read_cost": "0.08",
"eval_cost": "0.01",
"prefix_cost": "4.28",
"data_read_per_join": "122"
},
"used_columns": [
"feature_id",
"status",
"position"
],
"attached_condition": "<if>(found_match(pf_groups), ((`test_uchur_k`.`pf_groups`.`status` = 'A') or (`test_uchur_k`.`pf_groups`.`status` is null)), true)"
}
},
{
"table": {
"table_name": "pf_groups_description",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"test_uchur_k.pf.parent_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": "4.30",
"data_read_per_join": "150"
},
"used_columns": [
"feature_id",
"description",
"lang_code"
]
}
},
{
"table": {
"table_name": "cscart_product_features_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"test_uchur_k.cscart_product_features_values.feature_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": "4.32",
"data_read_per_join": "150"
},
"used_columns": [
"feature_id",
"description",
"internal_name",
"full_description",
"prefix",
"suffix",
"lang_code",
"yml2_variants_unit"
]
}
},
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"key_length": "159",
"ref": [
"test_uchur_k.cscart_product_features_values.feature_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.02",
"eval_cost": "0.01",
"prefix_cost": "4.34",
"data_read_per_join": "9"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`test_uchur_k`.`cscart_ult_objects_sharing`.`share_object_id` = `test_uchur_k`.`cscart_product_features_values`.`feature_id`)"
}
},
{
"table": {
"table_name": "abt_filters",
"access_type": "ref",
"possible_keys": [
"feature_id",
"company_id"
],
"key": "company_id",
"used_key_parts": [
"company_id"
],
"key_length": "5",
"ref": [
"test_uchur_k.pf.company_id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.04",
"eval_cost": "0.02",
"prefix_cost": "4.40",
"data_read_per_join": "12"
},
"used_columns": [
"filter_id",
"company_id",
"feature_id"
],
"attached_condition": "<if>(is_not_null_compl(abt_filters), (`test_uchur_k`.`abt_filters`.`feature_id` = `test_uchur_k`.`cscart_product_features_values`.`feature_id`), true)"
}
}
]
}
}
}
}
Result
| feature_id |
company_id |
feature_type |
parent_id |
display_on_product |
display_on_catalog |
display_on_header |
description |
internal_name |
lang_code |
prefix |
suffix |
categories_path |
full_description |
status |
comparison |
position |
purpose |
feature_style |
filter_style |
feature_code |
timestamp |
updated_timestamp |
group_position |
value |
variant_id |
value_int |
yml2_exclude_prices |
yml2_variants_unit |
filter_id |
| 1 |
1 |
E |
0 |
Y |
Y |
N |
Бренд (Общие) |
Бренд (Общие) |
kk |
|
|
4,6,7,8,9,10,18,20,21,23,24,25,13,26,29,39,1,2,3,5,11,12,15,16,17,19,22,28,31,32,33,34,35,36,37,38,63,73,74,59,139,142,143,155,169,76,69,131,179,180,210,157,58,57,228,229,114,236,239,136,161,245,222,247,97,62,148,106,181,105,282,264,98,207,163,68,253,55,288,147,221,312,151,325,298,268,208,328,321,345,352,331,54,159,65,175,380,311,286 |
|
A |
N |
0 |
organize_catalog |
brand |
checkbox |
|
1760347417 |
1763916902 |
|
|
607 |
|
|
|
2 |
| 55 |
1 |
S |
0 |
Y |
Y |
N |
Модель |
Модель |
kk |
|
|
|
|
A |
N |
20 |
find_products |
text |
checkbox |
|
1760456410 |
1763694640 |
|
|
1571 |
|
|
|
13 |
| 39 |
1 |
S |
0 |
Y |
Y |
N |
Цвет |
Цвет |
kk |
|
|
9,1,2,3,4,5,6,7,8,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,28,29,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,50,54,62,65,103,135,144,152,175,241,312,352,387 |
|
A |
N |
510 |
group_catalog_item |
dropdown_images |
color |
|
1760455336 |
1765503843 |
|
|
1588 |
|
|
|
5 |
| 213 |
1 |
S |
0 |
Y |
N |
N |
Производство |
Производство ГЛАВНАЯ |
kk |
|
|
68,133,1 |
|
A |
N |
550 |
find_products |
text |
checkbox |
|
1763689771 |
1763702138 |
|
|
1574 |
|
|
|
|