Query time 0.03458
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": 496,
"filtered": 0.072521202,
"attached_condition": "pfv.feature_id in (21141,21291,21429,22573,20633,24099,19650,22245,22419,22551,20836,21017,22413,20977,22553,21034,21147,25128,21484,21267,23757,21067) and pfv.product_id in (21464,2015,1836,2255,3451,40526,6555,25180,286,26604,3004,2509,294,2576,26608,2492,2302,50233,1732,36834,2448) 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 |
19650 |
6555 |
68348 |
0 |
My rose (Limited edition) |
20633 |
3451 |
72130 |
0 |
Single bottle |
20836 |
3004 |
72795 |
0 |
Size 20 x 20 cm |
20977 |
2576 |
73301 |
0 |
Sweet & Sour |
21017 |
2509 |
73425 |
0 |
Single bottle |
21034 |
2492 |
73480 |
0 |
250gr |
21067 |
2448 |
73562 |
0 |
10ml |
21141 |
21464 |
73926 |
0 |
Case AirPods Pro |
21147 |
2302 |
73958 |
0 |
Chillin |
21267 |
36834 |
74407 |
0 |
Nude Pink |
21291 |
2015 |
74497 |
0 |
2ml |
21429 |
1836 |
74982 |
0 |
Orange mix mallard green |
21484 |
1732 |
75200 |
0 |
Black |
22245 |
25180 |
77943 |
0 |
Hexagonal - Brown orange |
22413 |
294 |
78622 |
0 |
Green Fluorite |
22419 |
286 |
78651 |
2 |
Cyan |
22551 |
26604 |
79176 |
0 |
Bird |
22553 |
26608 |
79182 |
0 |
Butterfly |
22573 |
2255 |
79232 |
0 |
RADERMECKER |
23757 |
36834 |
82455 |
0 |
1.6m x 2m |
24099 |
40526 |
83984 |
1 |
Flower pattern |
25128 |
50233 |
87716 |
2 |
Addicted |