Query time 0.01698
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": 142,
"filtered": 0.016930636,
"attached_condition": "pfv.feature_id in (24562,24883,24829,24828,24523,24953,24522,25186,24880,24848,23641) and pfv.product_id in (44881,48122,47622,44752,48776,44756,50699,48065,47897,50698,31318,35705) 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 |
23641 |
35705 |
81976 |
1 |
Earrings |
24522 |
44756 |
85544 |
1 |
Gold-plated copper ring |
24523 |
44752 |
85546 |
1 |
Gold-plated copper earrings |
24562 |
44881 |
85695 |
1 |
Red bow |
24828 |
47622 |
86585 |
1 |
2 herbal eye patches |
24829 |
47622 |
86587 |
1 |
Refresh lavender |
24848 |
47897 |
86652 |
1 |
60ml |
24880 |
48065 |
86786 |
1 |
White |
24883 |
48122 |
86797 |
2 |
Nude brown cat |
24953 |
48776 |
87011 |
1 |
250g |
25186 |
31318 |
87894 |
1 |
1 |
25186 |
50698 |
87895 |
2 |
2 |
25186 |
50699 |
87896 |
3 |
3 |