Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.217622951,
"filesort": {
"sort_key": "fd.description, fv.position",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "v",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"loops": 1,
"rows": 35,
"cost": 0.047688267,
"filtered": 54.22251892,
"index_condition": "v.product_id in (128,129,130,131,132)",
"attached_condition": "v.lang_code = 'de'"
}
},
{
"table": {
"table_name": "f",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["cscart.v.feature_id"],
"loops": 18.97788204,
"rows": 1,
"cost": 0.033018051,
"filtered": 99.64788818,
"attached_condition": "f.`status` = 'A' and f.display_on_catalog = 'Y' and (f.categories_path = '' or find_in_set(43211,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": ["cscart.v.feature_id", "const"],
"loops": 18.91105851,
"rows": 1,
"cost": 0.033312112,
"filtered": 100,
"attached_condition": "trigcond(fd.lang_code = 'de')"
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["cscart.v.variant_id"],
"loops": 18.91105851,
"rows": 1,
"cost": 0.034131312,
"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": ["cscart.fv.variant_id", "const"],
"loops": 18.91105851,
"rows": 1,
"cost": 0.036570697,
"filtered": 100,
"attached_condition": "trigcond(vd.lang_code = 'de' 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": ["cscart.f.parent_id"],
"loops": 18.91105851,
"rows": 1,
"cost": 0.032902512,
"filtered": 100,
"attached_condition": "trigcond(gf.feature_type = 'G')"
}
}
],
"subqueries": [
{
"expression_cache": {
"state": "uninitialized",
"query_block": {
"select_id": 2,
"cost": 0.001933826,
"nested_loop": [
{
"table": {
"table_name": "df",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["cscart.f.parent_id"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100
}
}
]
}
}
}
]
}
}
}
}
Result
product_id |
feature_id |
value |
value_int |
variant_id |
feature_type |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
129 |
334 |
|
|
2352 |
E |
Brand Name |
|
|
KitchenAid |
333 |
0 |
0 |
128 |
334 |
|
|
2352 |
E |
Brand Name |
|
|
KitchenAid |
333 |
0 |
0 |
132 |
334 |
|
|
2352 |
E |
Brand Name |
|
|
KitchenAid |
333 |
0 |
0 |
131 |
334 |
|
|
2352 |
E |
Brand Name |
|
|
KitchenAid |
333 |
0 |
0 |
130 |
334 |
|
|
2352 |
E |
Brand Name |
|
|
KitchenAid |
333 |
0 |
0 |
130 |
335 |
|
|
2354 |
S |
Control Type |
|
|
Analog |
333 |
0 |
0 |
129 |
335 |
|
|
2353 |
S |
Control Type |
|
|
Electronic |
333 |
0 |
0 |
128 |
335 |
|
|
2353 |
S |
Control Type |
|
|
Electronic |
333 |
0 |
0 |
132 |
335 |
|
|
2353 |
S |
Control Type |
|
|
Electronic |
333 |
0 |
0 |
131 |
335 |
|
|
2354 |
S |
Control Type |
|
|
Analog |
333 |
0 |
0 |
130 |
336 |
|
|
2355 |
S |
Cooktop Power Source |
|
|
Gas |
333 |
0 |
0 |
129 |
336 |
|
|
2355 |
S |
Cooktop Power Source |
|
|
Gas |
333 |
0 |
0 |
128 |
336 |
|
|
2355 |
S |
Cooktop Power Source |
|
|
Gas |
333 |
0 |
0 |
132 |
336 |
|
|
2355 |
S |
Cooktop Power Source |
|
|
Gas |
333 |
0 |
0 |
131 |
336 |
|
|
2355 |
S |
Cooktop Power Source |
|
|
Gas |
333 |
0 |
0 |
131 |
337 |
|
|
2356 |
S |
Cooktop Surface Type |
|
|
Grate |
333 |
0 |
0 |
130 |
337 |
|
|
2356 |
S |
Cooktop Surface Type |
|
|
Grate |
333 |
0 |
0 |
129 |
337 |
|
|
2356 |
S |
Cooktop Surface Type |
|
|
Grate |
333 |
0 |
0 |
128 |
337 |
|
|
2356 |
S |
Cooktop Surface Type |
|
|
Grate |
333 |
0 |
0 |
132 |
337 |
|
|
2356 |
S |
Cooktop Surface Type |
|
|
Grate |
333 |
0 |
0 |
132 |
338 |
Kgcu407vss |
|
0 |
T |
Item model number |
|
|
|
333 |
0 |
0 |
131 |
338 |
KCGS350ESS |
|
0 |
T |
Item model number |
|
|
|
333 |
0 |
0 |
130 |
338 |
KCGS956ESS |
|
0 |
T |
Item model number |
|
|
|
333 |
0 |
0 |
129 |
338 |
KGCC506RBL |
|
0 |
T |
Item model number |
|
|
|
333 |
0 |
0 |
128 |
338 |
KGCC566RBL |
|
0 |
T |
Item model number |
|
|
|
333 |
0 |
0 |