Query time 0.00034
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.0593838,
"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": 24,
"cost": 0.01339796,
"filtered": 100,
"attached_condition": "gp.group_id in (31,32,33,135,136,177,180,34,35,36)",
"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": 24,
"rows": 1,
"cost": 0.02418092,
"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": 24,
"rows": 1,
"cost": 0.02180492,
"filtered": 100,
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 601 |
13439 |
12566 |
31 |
| 601 |
13467 |
12568 |
31 |
| 601 |
13440 |
12566 |
32 |
| 601 |
13468 |
12568 |
32 |
| 601 |
13441 |
12566 |
33 |
| 601 |
13469 |
12568 |
33 |
| 601 |
13442 |
12566 |
34 |
| 601 |
13470 |
12568 |
34 |
| 601 |
13443 |
12566 |
35 |
| 601 |
13471 |
12568 |
35 |
| 601 |
13444 |
12566 |
36 |
| 601 |
13472 |
12568 |
36 |
| 617 |
13876 |
12794 |
135 |
| 617 |
13877 |
12779 |
135 |
| 617 |
13878 |
12775 |
135 |
| 617 |
13879 |
12794 |
136 |
| 617 |
13880 |
12779 |
136 |
| 617 |
13881 |
12796 |
136 |
| 617 |
13882 |
12798 |
136 |
| 549 |
16334 |
12532 |
177 |
| 549 |
16335 |
12537 |
177 |
| 549 |
16348 |
12530 |
180 |
| 549 |
16349 |
12528 |
180 |
| 549 |
16350 |
12531 |
180 |