Query time 0.00107
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.008702745,
"nested_loop": [
{
"table": {
"table_name": "gpf",
"access_type": "ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"ref": ["const"],
"loops": 1,
"rows": 1,
"cost": 0.001792605,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"ref": ["const"],
"loops": 1,
"rows": 4,
"cost": 0.00223266,
"filtered": 100,
"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": "PRIMARY",
"key_length": "6",
"used_key_parts": ["feature_id", "product_id"],
"ref": [
"u508912950_dev_2025.gpf.feature_id",
"u508912950_dev_2025.gp.product_id"
],
"loops": 4,
"rows": 1,
"cost": 0.00467748,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'"
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 986 |
19932 |
13946 |
494 |
| 986 |
19933 |
13947 |
494 |
| 986 |
19934 |
13948 |
494 |
| 986 |
19935 |
13949 |
494 |