Query time 0.01053
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "pfv",
"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": "12",
"used_key_parts": ["product_id", "feature_id", "lang_code"],
"rows": 104,
"filtered": 0.024820175,
"attached_condition": "pfv.feature_id in (24557,24421,23627,23724,23629,23456,24835,24604,24116,24115) and pfv.product_id in (44876,43477,35886,36519,35712,33466,47651,45293,40538,40537) and pfv.lang_code = 'en'",
"using_index": true
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "feature_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["dev_db.pfv.variant_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "fv.feature_id = pfv.feature_id"
}
},
{
"table": {
"table_name": "fvd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["dev_db.pfv.variant_id", "const"],
"rows": 1,
"filtered": 100,
"index_condition": "fvd.lang_code = 'en'"
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
position |
variant |
23456 |
33466 |
81385 |
1 |
Black |
23629 |
35712 |
81947 |
1 |
Bliss 1 |
23627 |
35886 |
81936 |
7 |
White - yellow |
23724 |
36519 |
82349 |
1 |
Mini size |
24115 |
40537 |
84031 |
1 |
Headband |
24116 |
40538 |
84036 |
1 |
Headband |
24421 |
43477 |
85127 |
1 |
Milky white |
24557 |
44876 |
85649 |
1 |
M1 |
24604 |
45293 |
85858 |
1 |
Flower 1 |
24835 |
47651 |
86600 |
1 |
Avocado |