Query time 0.00056
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.019690345,
"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": 7,
"cost": 0.005117275,
"filtered": 100,
"attached_condition": "gp.group_id in (154,153,152)",
"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": 7,
"rows": 1,
"cost": 0.007633035,
"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": 7,
"rows": 1,
"cost": 0.006940035,
"filtered": 100,
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 609 |
13941 |
12656 |
152 |
| 609 |
13942 |
12658 |
152 |
| 609 |
13944 |
12660 |
153 |
| 609 |
13945 |
12661 |
153 |
| 609 |
13947 |
12661 |
154 |
| 609 |
13948 |
12662 |
154 |
| 609 |
13949 |
12664 |
154 |