Query time 0.00042
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.0417744,
"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": 16,
"cost": 0.01057104,
"filtered": 100,
"attached_condition": "gp.group_id in (44,45,46,47,48,49,50,51)",
"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": 16,
"rows": 1,
"cost": 0.01639368,
"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": 16,
"rows": 1,
"cost": 0.01480968,
"filtered": 100,
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 601 |
13452 |
12566 |
44 |
| 601 |
13480 |
12568 |
44 |
| 601 |
13453 |
12566 |
45 |
| 601 |
13481 |
12568 |
45 |
| 601 |
13454 |
12566 |
46 |
| 601 |
13482 |
12568 |
46 |
| 601 |
13455 |
12566 |
47 |
| 601 |
13483 |
12568 |
47 |
| 601 |
13456 |
12566 |
48 |
| 601 |
13484 |
12568 |
48 |
| 601 |
13457 |
12566 |
49 |
| 601 |
13485 |
12568 |
49 |
| 601 |
13458 |
12566 |
50 |
| 601 |
13486 |
12568 |
50 |
| 601 |
13459 |
12566 |
51 |
| 601 |
13487 |
12568 |
51 |