Query time 0.00185
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "fd.description, fv.position",
"temporary_table": {
"table": {
"table_name": "v",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl"
],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"rows": 24,
"filtered": 75,
"index_condition": "v.product_id in (227,289,318,234)",
"attached_condition": "v.lang_code = 'ru'"
},
"table": {
"table_name": "f",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["orbit_cscart_orbit_cscart.v.feature_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "f.`status` = 'A' and f.display_on_catalog = 'Y' and (f.categories_path = '' or find_in_set(203,f.categories_path)) and if(f.parent_id,(subquery#2),'A') = 'A' and (v.variant_id <> 0 or f.feature_type <> 'C' and v.`value` <> '' or f.feature_type = 'C' or v.value_int <> '')"
},
"table": {
"table_name": "fd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"ref": ["orbit_cscart_orbit_cscart.v.feature_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(fd.lang_code = 'ru')"
},
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["orbit_cscart_orbit_cscart.v.variant_id"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "vd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["orbit_cscart_orbit_cscart.fv.variant_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(vd.lang_code = 'ru' and trigcond(fv.variant_id is not null))"
},
"table": {
"table_name": "gf",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["orbit_cscart_orbit_cscart.f.parent_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(gf.feature_type = 'G')"
},
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "159",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"ref": ["orbit_cscart_orbit_cscart.v.feature_id", "const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_ult_objects_sharing.share_object_id = v.feature_id and cscart_ult_objects_sharing.share_object_type = 'product_features'",
"using_index": true
},
"subqueries": [
{
"expression_cache": {
"state": "uninitialized",
"query_block": {
"select_id": 2,
"table": {
"table_name": "df",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["orbit_cscart_orbit_cscart.f.parent_id"],
"rows": 1,
"filtered": 100
}
}
}
}
]
}
}
}
}
Result
| product_id |
feature_id |
value |
value_int |
variant_id |
feature_type |
description |
prefix |
parent_id |
position |
gposition |
variant |
suffix |
| 227 |
16 |
|
|
229 |
S |
Артикул |
|
20 |
10 |
10 |
T-150 |
|
| 234 |
16 |
|
|
230 |
S |
Артикул |
|
20 |
10 |
10 |
T-100 |
|
| 289 |
16 |
|
|
236 |
S |
Артикул |
|
20 |
10 |
10 |
T-060 |
|
| 318 |
16 |
|
|
350 |
S |
Артикул |
|
20 |
10 |
10 |
T-G-28 |
|
| 289 |
22 |
|
|
195 |
S |
Гарантия |
|
20 |
30 |
10 |
3 лет |
|
| 289 |
47 |
|
|
329 |
M |
Диаметр, см |
|
40 |
0 |
50 |
22 |
|
| 289 |
51 |
|
|
305 |
M |
Индикатор давления |
|
40 |
0 |
50 |
Есть |
|
| 289 |
28 |
|
|
328 |
M |
Материал |
|
40 |
0 |
50 |
Сталь хром-никель 18/10 |
|
| 289 |
46 |
|
|
337 |
M |
Объем |
|
40 |
0 |
50 |
4 л |
|
| 289 |
44 |
|
|
188 |
M |
Подходит для варочных поверхностей |
|
20 |
0 |
10 |
Газовая |
|
| 289 |
44 |
|
|
160 |
M |
Подходит для варочных поверхностей |
|
20 |
0 |
10 |
Стеклокерамическая |
|
| 289 |
44 |
|
|
183 |
M |
Подходит для варочных поверхностей |
|
20 |
0 |
10 |
Электрическая |
|
| 289 |
44 |
|
|
176 |
M |
Подходит для варочных поверхностей |
|
20 |
0 |
10 |
Индукционная |
|
| 289 |
29 |
N |
|
0 |
C |
Расходный материал |
|
40 |
0 |
50 |
|
|
| 227 |
29 |
N |
|
0 |
C |
Расходный материал |
|
40 |
0 |
50 |
|
|
| 318 |
29 |
N |
|
0 |
C |
Расходный материал |
|
40 |
0 |
50 |
|
|
| 234 |
29 |
N |
|
0 |
C |
Расходный материал |
|
40 |
0 |
50 |
|
|
| 227 |
15 |
|
|
319 |
S |
Тип товара |
|
20 |
20 |
10 |
Посуда |
|
| 318 |
15 |
|
|
319 |
S |
Тип товара |
|
20 |
20 |
10 |
Посуда |
|
| 234 |
15 |
|
|
319 |
S |
Тип товара |
|
20 |
20 |
10 |
Посуда |
|
| 289 |
15 |
|
|
319 |
S |
Тип товара |
|
20 |
20 |
10 |
Посуда |
|