Query time 0.00664
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": 390,
"filtered": 0.031529736,
"attached_condition": "pfv.feature_id in (19651,19723,22334,21291,22573,24099,19650,22245,22419,22831,22333,22551,22413,20977,22553,22826,21115,21034,21147) and pfv.product_id in (6554,15218,25730,2015,2255,40526,6555,25180,286,26854,405,26604,294,2576,26608,26864,21188,2492,2302) 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) |
19651 |
6554 |
68353 |
0 |
Full moon |
19723 |
15218 |
68592 |
0 |
LA ROSE |
20977 |
2576 |
73301 |
0 |
Sweet & Sour |
21034 |
2492 |
73480 |
0 |
250gr |
21115 |
21188 |
73688 |
0 |
Santa Claus |
21147 |
2302 |
73958 |
0 |
Chillin |
21291 |
2015 |
74497 |
0 |
2ml |
22245 |
25180 |
77943 |
0 |
Hexagonal - Brown orange |
22333 |
405 |
78278 |
3 |
Zip bag - 15g |
22334 |
25730 |
78280 |
0 |
Size L - 20g |
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 |
22826 |
26864 |
79632 |
0 |
300g |
22831 |
26854 |
79644 |
0 |
110g |
24099 |
40526 |
83984 |
1 |
Flower pattern |