Query time 0.00032
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.014874635,
"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": 5,
"cost": 0.003997185,
"filtered": 100,
"attached_condition": "gp.group_id in (171,167)",
"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": 5,
"rows": 1,
"cost": 0.005686225,
"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": 5,
"rows": 1,
"cost": 0.005191225,
"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 |
| 549 |
15168 |
12532 |
171 |
| 549 |
15169 |
13061 |
171 |