Query time 0.00047
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.03493145,
"nested_loop": [
{
"table": {
"table_name": "fv",
"access_type": "ref",
"possible_keys": ["PRIMARY", "feature_id"],
"key": "feature_id",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["const"],
"loops": 1,
"rows": 13,
"cost": 0.01783744,
"filtered": 100
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "variant_id",
"key_length": "6",
"used_key_parts": ["variant_id", "feature_id"],
"ref": ["u508912950_dev_2025.fv.variant_id", "const"],
"loops": 13,
"rows": 2,
"cost": 0.01538037,
"filtered": 2.844639063,
"attached_condition": "pfv.product_id in (13439,13440,13441,13442,13443,13444,13445,13446,13447,13448,13449,13450,13451) and pfv.lang_code = 'en'",
"using_index": true
}
},
{
"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.fv.variant_id", "const"],
"loops": 1,
"rows": 1,
"cost": 0.00171364,
"filtered": 100,
"attached_condition": "fvd.lang_code = 'en'"
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 601 |
13439 |
12566 |
10 |
3ml |
| 601 |
13440 |
12566 |
10 |
3ml |
| 601 |
13441 |
12566 |
10 |
3ml |
| 601 |
13442 |
12566 |
10 |
3ml |
| 601 |
13443 |
12566 |
10 |
3ml |
| 601 |
13444 |
12566 |
10 |
3ml |
| 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 |
| 601 |
13451 |
12566 |
10 |
3ml |