Query time 0.00068
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.088853825,
"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": 14,
"cost": 0.019405392,
"filtered": 54.22251892,
"index_condition": "v.product_id in (133,134)",
"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": 7.591152815,
"rows": 1,
"cost": 0.013330101,
"filtered": 99.64788818,
"attached_condition": "f.`status` = 'A' and f.display_on_catalog = 'Y' and (f.categories_path = '' or find_in_set(43212,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": 7.564423404,
"rows": 1,
"cost": 0.013693485,
"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": 7.564423404,
"rows": 1,
"cost": 0.014512685,
"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": 7.564423404,
"rows": 1,
"cost": 0.014628279,
"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": 7.564423404,
"rows": 1,
"cost": 0.013283885,
"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 |
134 |
334 |
|
|
2352 |
E |
Brand Name |
|
|
KitchenAid |
333 |
0 |
0 |
133 |
334 |
|
|
2352 |
E |
Brand Name |
|
|
KitchenAid |
333 |
0 |
0 |
133 |
338 |
KMBP100ESS |
|
0 |
T |
Item model number |
|
|
|
333 |
0 |
0 |
134 |
338 |
KMBD104GSS |
|
0 |
T |
Item model number |
|
|
|
333 |
0 |
0 |
134 |
339 |
|
|
2358 |
S |
Microwave Controls |
|
|
LED display with touchscreen controls |
333 |
0 |
0 |
133 |
339 |
|
|
2357 |
S |
Microwave Controls |
|
|
Electronic |
333 |
0 |
0 |
134 |
340 |
|
|
2360 |
S |
Microwave Size |
|
|
Mid-size |
333 |
0 |
0 |
133 |
340 |
|
|
2359 |
S |
Microwave Size |
|
|
Full-size |
333 |
0 |
0 |
134 |
341 |
|
|
2361 |
S |
Microwave Type |
|
|
Built-in |
333 |
0 |
0 |
133 |
341 |
|
|
2361 |
S |
Microwave Type |
|
|
Built-in |
333 |
0 |
0 |