Query time 0.00035
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.01686913,
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "range",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"loops": 1,
"rows": 6,
"cost": 0.00414387,
"filtered": 100,
"attached_condition": "gp.group_id in (167,168)",
"using_index": true
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["u508912950_dev_2025.gp.product_id"],
"loops": 6,
"rows": 1,
"cost": 0.00665963,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
},
{
"table": {
"table_name": "gpf",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "6",
"used_key_parts": ["group_id", "feature_id"],
"ref": [
"u508912950_dev_2025.gp.group_id",
"u508912950_dev_2025.pfv.feature_id"
],
"loops": 6,
"rows": 1,
"cost": 0.00606563,
"filtered": 100,
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 620 |
14130 |
12919 |
167 |
| 620 |
14131 |
12920 |
167 |
| 620 |
14132 |
12921 |
167 |
| 622 |
14133 |
12923 |
168 |
| 622 |
14134 |
12924 |
168 |
| 622 |
14135 |
12925 |
168 |