Query time 0.00108
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.203553405,
"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": "fl",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"loops": 1,
"rows": 321,
"cost": 0.055979245,
"filtered": 23.98753929,
"attached_condition": "pfv.feature_id in (601,549,596,625,618,607,617) and pfv.product_id in (13445,13446,13447,13448,18508,13449,14140,13450,13963,13919,13899) 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": ["u508912950_dev_2025.pfv.variant_id"],
"loops": 77,
"rows": 1,
"cost": 0.07214868,
"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": ["u508912950_dev_2025.pfv.variant_id", "const"],
"loops": 77,
"rows": 1,
"cost": 0.07542548,
"filtered": 100,
"attached_condition": "fvd.lang_code = 'en'"
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 549 |
18508 |
12528 |
0 |
Black |
| 596 |
18508 |
12544 |
30 |
L |
| 601 |
13445 |
12566 |
10 |
3ml |
| 601 |
13446 |
12566 |
10 |
3ml |
| 601 |
13447 |
12566 |
10 |
3ml |
| 601 |
13448 |
12566 |
10 |
3ml |
| 601 |
13449 |
12566 |
10 |
3ml |
| 601 |
13450 |
12566 |
10 |
3ml |
| 607 |
13919 |
12624 |
0 |
Black |
| 617 |
13899 |
12788 |
0 |
Dark |
| 618 |
13963 |
12843 |
0 |
Berry |
| 625 |
14140 |
12929 |
0 |
Soft Rose |