Query time 0.00051
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.087626619,
"filesort": {
"sort_key": "cscart_product_feature_variants.position, cscart_product_feature_variant_descriptions.variant",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "range",
"possible_keys": ["feature_id"],
"key": "feature_id",
"key_length": "3",
"used_key_parts": ["feature_id"],
"loops": 1,
"rows": 18,
"cost": 0.026712494,
"filtered": 100,
"index_condition": "cscart_product_feature_variants.feature_id in (327,328,330,331,332)"
}
},
{
"table": {
"table_name": "cscart_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["cscart.cscart_product_feature_variants.variant_id", "const"],
"loops": 18,
"rows": 1,
"cost": 0.034808868,
"filtered": 100,
"attached_condition": "trigcond(cscart_product_feature_variant_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_product_features_values",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "fl",
"key_length": "12",
"used_key_parts": ["feature_id", "lang_code", "variant_id"],
"ref": [
"cscart.cscart_product_feature_variants.feature_id",
"const",
"cscart.cscart_product_feature_variants.variant_id"
],
"rowid_filter": {
"range": {
"key": "product_id",
"used_key_parts": ["product_id"]
},
"rows": 9,
"selectivity_pct": 0.603217158
},
"loops": 18,
"rows": 2,
"cost": 0.02214702,
"filtered": 0.603217185,
"attached_condition": "trigcond(cscart_product_features_values.product_id = 123 and cscart_product_features_values.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_product_features",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["cscart.cscart_product_feature_variants.feature_id"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"cscart.cscart_product_feature_variants.variant_id",
"const",
"const",
"const"
],
"loops": 1,
"rows": 1,
"cost": 0.002024411,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'e' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'de')"
}
}
]
}
}
}
}
Result
variant |
variant_id |
feature_id |
selected |
feature_type |
seo_name |
seo_path |
color |
value_int |
Digital |
2350 |
332 |
|
S |
|
|
|
|
Electronic |
2349 |
332 |
2349 |
S |
|
|
|
|
French Door |
2348 |
331 |
2348 |
S |
|
|
|
|
LED |
2347 |
330 |
2347 |
S |
|
|
|
|
LG |
2343 |
327 |
2343 |
E |
lg-de |
|
|
|
Samsung |
2344 |
327 |
|
E |
samsung-de-3 |
|
|
|
Touch |
2351 |
332 |
|
S |
|
|
|
|
Whirlpool |
2345 |
327 |
|
E |
whirlpool |
|
|
|
Yes |
2346 |
328 |
2346 |
S |
|
|
|
|