Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.027160507,
"filesort": {
"sort_key": "cscart_product_feature_variants.position, cscart_product_feature_variant_descriptions.variant",
"temporary_table": {
"nested_loop": [
{
"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": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"loops": 1,
"rows": 8,
"cost": 0.0028194,
"filtered": 49.808815,
"attached_condition": "cscart_product_features_values.product_id <=> 1844 and cscart_product_features_values.lang_code = 'en'",
"using_index": true
}
},
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "feature_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": [
"u985510652_ecartify_dev.cscart_product_features_values.variant_id"
],
"loops": 3.984705172,
"rows": 1,
"cost": 0.00682835,
"filtered": 100,
"attached_condition": "cscart_product_feature_variants.feature_id = cscart_product_features_values.feature_id and cscart_product_feature_variants.feature_id in (557,552,553,560)"
}
},
{
"table": {
"table_name": "cscart_product_features",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": [
"u985510652_ecartify_dev.cscart_product_features_values.feature_id"
],
"loops": 3.984705172,
"rows": 1,
"cost": 0.00438328,
"filtered": 100
}
},
{
"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": [
"u985510652_ecartify_dev.cscart_product_features_values.variant_id",
"const"
],
"loops": 3.984705172,
"rows": 1,
"cost": 0.00682835,
"filtered": 100,
"attached_condition": "trigcond(cscart_product_feature_variant_descriptions.lang_code = 'en')"
}
},
{
"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": [
"u985510652_ecartify_dev.cscart_product_features_values.variant_id",
"const",
"const",
"const"
],
"loops": 3.984705172,
"rows": 1,
"cost": 0.006301127,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'e' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
}
}
]
}
}
}
}
Result
| variant |
variant_id |
feature_id |
selected |
feature_type |
seo_name |
seo_path |
| Matte Black |
1207 |
557 |
1207 |
S |
|
|
| VEH1295 |
2058 |
560 |
2058 |
S |
|
|
| Wedgetail Adventure Accessory |
2034 |
552 |
2034 |
S |
|
|
| Wedgetail Sides |
2057 |
553 |
2057 |
S |
|
|