Query time 0.04720
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": "PRIMARY",
"key_length": "6",
"used_key_parts": ["feature_id", "product_id"],
"rows": 242,
"filtered": 0.01843635,
"attached_condition": "pfv.feature_id in (24298,24518,22638,24555,22641,23396,24114,24761,24314,21945,24074,24544,24075,22100,23727) and pfv.product_id in (42166,44760,4918,44874,27094,32686,40536,47181,42189,990,40384,44938,40385,24711,36659) 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 |
21945 |
990 |
76832 |
0 |
My Identity |
22100 |
24711 |
77366 |
0 |
Purple shade |
22638 |
4918 |
79277 |
0 |
Clasp |
22641 |
27094 |
79284 |
0 |
Buckle |
23396 |
32686 |
81155 |
1 |
Blue |
23727 |
36659 |
82360 |
2 |
Beige |
24074 |
40384 |
83889 |
2 |
Size 17~18.9cm |
24075 |
40385 |
83891 |
2 |
Size 17~18.9cm |
24114 |
40536 |
84023 |
1 |
Lotus headband |
24298 |
42166 |
84667 |
1 |
White |
24314 |
42189 |
84716 |
1 |
Model 1 |
24518 |
44760 |
85534 |
1 |
Gold-plated copper ring |
24544 |
44938 |
85604 |
1 |
16mm |
24555 |
44874 |
85643 |
1 |
Orange and yellow |
24761 |
47181 |
86340 |
0 |
Necklace |