Query time 0.00282
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.015788664,
"filesort": {
"sort_key": "tconnect_product_feature_variants.position, tconnect_product_feature_variant_descriptions.variant",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "tconnect_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": 3,
"cost": 0.004492149,
"filtered": 99.73190308,
"attached_condition": "tconnect_product_features_values.product_id <=> 224 and tconnect_product_features_values.lang_code = 'en'"
}
},
{
"table": {
"table_name": "tconnect_product_feature_variants",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "feature_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["tconnect.tconnect_product_features_values.variant_id"],
"loops": 2.991957105,
"rows": 1,
"cost": 0.005377972,
"filtered": 19.23077011,
"attached_condition": "tconnect_product_feature_variants.feature_id = tconnect_product_features_values.feature_id and tconnect_product_feature_variants.feature_id in (15,16,17)"
}
},
{
"table": {
"table_name": "tconnect_product_features",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["tconnect.tconnect_product_features_values.feature_id"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100
}
},
{
"table": {
"table_name": "tconnect_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": [
"tconnect.tconnect_product_features_values.variant_id",
"const"
],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100,
"attached_condition": "trigcond(tconnect_product_feature_variant_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "tconnect_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"tconnect.tconnect_product_features_values.variant_id",
"const",
"const",
"const"
],
"loops": 1,
"rows": 1,
"cost": 0.002050891,
"filtered": 100,
"attached_condition": "trigcond(tconnect_seo_names.`type` = 'e' and tconnect_seo_names.dispatch = '' and tconnect_seo_names.lang_code = 'en')"
}
}
]
}
}
}
}
Result
| variant |
variant_id |
feature_id |
selected |
feature_type |
seo_name |
seo_path |
color |
value_int |
abt__ut2_multicolor |
abt__ut2_color_style |
| 16GB |
45 |
17 |
45 |
S |
|
|
|
|
|
default |
| 8.9" |
53 |
16 |
53 |
S |
|
|
|
|
|
default |
| Android 3.2, Honeycomb |
58 |
15 |
58 |
S |
|
|
|
|
|
default |