Query time 0.00116
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "18.10"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_product_filters",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 72,
"rows_produced_per_join": 7,
"filtered": "10.00",
"cost_info": {
"read_cost": "7.30",
"eval_cost": "0.72",
"prefix_cost": "8.02",
"data_read_per_join": "518"
},
"used_columns": [
"filter_id",
"categories_path",
"feature_id",
"position",
"field_type",
"status",
"round_to",
"display_count",
"abt__ut2_display_desktop"
],
"attached_condition": "((`unicomps`.`cscart_product_filters`.`status` = 'A') and ((`unicomps`.`cscart_product_filters`.`categories_path` = '') or (0 <> find_in_set(1342,`unicomps`.`cscart_product_filters`.`categories_path`))))"
}
},
{
"table": {
"table_name": "cscart_product_filter_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"filter_id",
"lang_code"
],
"key_length": "9",
"ref": [
"unicomps.cscart_product_filters.filter_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.80",
"eval_cost": "0.72",
"prefix_cost": "10.54",
"data_read_per_join": "5K"
},
"used_columns": [
"filter_id",
"lang_code",
"filter"
]
}
},
{
"table": {
"table_name": "cscart_product_features",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"unicomps.cscart_product_filters.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.80",
"eval_cost": "0.72",
"prefix_cost": "13.06",
"data_read_per_join": "8K"
},
"used_columns": [
"feature_id",
"filter_style",
"feature_type"
]
}
},
{
"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": [
"unicomps.cscart_product_filters.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.80",
"eval_cost": "0.72",
"prefix_cost": "15.58",
"data_read_per_join": "17K"
},
"used_columns": [
"feature_id",
"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": [
"unicomps.cscart_product_filters.filter_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.80",
"eval_cost": "0.72",
"prefix_cost": "18.10",
"data_read_per_join": "1K"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`unicomps`.`cscart_ult_objects_sharing`.`share_object_id` = `unicomps`.`cscart_product_filters`.`filter_id`)"
}
}
]
}
}
}
Result
| feature_id |
filter_id |
field_type |
round_to |
display |
display_count |
filter |
feature_type |
filter_style |
prefix |
suffix |
yml2_variants_unit |
| 127 |
266 |
|
0.01 |
N |
5 |
Тип товара |
S |
checkbox |
|
|
|
| 0 |
229 |
P |
0.01 |
Y |
10 |
Цена (₽) |
|
|
|
|
|
| 1 |
117 |
|
1 |
N |
5 |
Бренд |
E |
checkbox |
|
|
|
| 2 |
129 |
|
1 |
Y |
10 |
Код вендора |
T |
|
|
|
|