Query time 0.00085
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.360844632,
"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": "idx_product_feature_variant_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"loops": 1,
"rows": 59,
"cost": 0.078091665,
"filtered": 54.22251892,
"index_condition": "v.product_id in (135,139,140,141,142,143) and 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": 31.99128686,
"rows": 1,
"cost": 0.055518567,
"filtered": 99.64788818,
"attached_condition": "f.`status` = 'A' and f.display_on_catalog = 'Y' and (f.categories_path = '' or find_in_set(43213,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": 31.87864149,
"rows": 1,
"cost": 0.0557334,
"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": 31.87864149,
"rows": 1,
"cost": 0.0565526,
"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": 31.87864149,
"rows": 1,
"cost": 0.0596246,
"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": 31.87864149,
"rows": 1,
"cost": 0.0553238,
"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 |
140 |
343 |
|
|
2362 |
E |
Brand Name |
|
|
Nespresso |
342 |
0 |
0 |
143 |
343 |
|
|
2362 |
E |
Brand Name |
|
|
Nespresso |
342 |
0 |
0 |
139 |
343 |
|
|
2362 |
E |
Brand Name |
|
|
Nespresso |
342 |
0 |
0 |
142 |
343 |
|
|
2362 |
E |
Brand Name |
|
|
Nespresso |
342 |
0 |
0 |
135 |
343 |
|
|
2362 |
E |
Brand Name |
|
|
Nespresso |
342 |
0 |
0 |
141 |
343 |
|
|
2362 |
E |
Brand Name |
|
|
Nespresso |
342 |
0 |
0 |
141 |
344 |
|
|
2366 |
S |
Coffee Type Used |
|
|
Pods |
342 |
0 |
0 |
140 |
344 |
|
|
2366 |
S |
Coffee Type Used |
|
|
Pods |
342 |
0 |
0 |
135 |
344 |
|
|
2366 |
S |
Coffee Type Used |
|
|
Pods |
342 |
0 |
0 |
135 |
345 |
|
|
2368 |
S |
Color |
|
|
Red |
342 |
0 |
0 |
135 |
346 |
|
|
2370 |
S |
Filter Type |
|
|
Permanent |
342 |
0 |
0 |
141 |
346 |
|
|
2370 |
S |
Filter Type |
|
|
Permanent |
342 |
0 |
0 |
140 |
346 |
|
|
2370 |
S |
Filter Type |
|
|
Permanent |
342 |
0 |
0 |
143 |
347 |
EN80B |
|
0 |
T |
Item model number |
|
|
|
342 |
0 |
0 |
135 |
347 |
EN85R |
|
0 |
T |
Item model number |
|
|
|
342 |
0 |
0 |
141 |
347 |
BNV420BLK1BUC1 |
|
0 |
T |
Item model number |
|
|
|
342 |
0 |
0 |
140 |
347 |
BNV420WHT1BUC1 |
|
0 |
T |
Item model number |
|
|
|
342 |
0 |
0 |
139 |
347 |
BNV220CRO1BUC1 |
|
0 |
T |
Item model number |
|
|
|
342 |
0 |
0 |
142 |
347 |
BEC420TTN1AUC1 |
|
0 |
T |
Item model number |
|
|
|
342 |
0 |
0 |
135 |
348 |
|
|
2372 |
S |
Pod Type |
|
|
Nespresso Original Capsules |
342 |
0 |
0 |
141 |
348 |
|
|
2374 |
S |
Pod Type |
|
|
Nespresso Vertuo Capsules |
342 |
0 |
0 |
140 |
348 |
|
|
2374 |
S |
Pod Type |
|
|
Nespresso Vertuo Capsules |
342 |
0 |
0 |
139 |
348 |
|
|
2372 |
S |
Pod Type |
|
|
Nespresso Original Capsules |
342 |
0 |
0 |
142 |
348 |
|
|
2372 |
S |
Pod Type |
|
|
Nespresso Original Capsules |
342 |
0 |
0 |