Query time 0.00041
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.04975238,
"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": 20,
"cost": 0.01115778,
"filtered": 100,
"attached_condition": "gp.group_id in (177,180,170,175,178,176,179,174)",
"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": 20,
"rows": 1,
"cost": 0.0202873,
"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": 20,
"rows": 1,
"cost": 0.0183073,
"filtered": 100,
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 625 |
14140 |
12929 |
170 |
| 625 |
14141 |
12930 |
170 |
| 549 |
15747 |
12539 |
174 |
| 549 |
15748 |
12530 |
174 |
| 549 |
15751 |
12539 |
175 |
| 549 |
15752 |
12528 |
175 |
| 549 |
15753 |
13062 |
176 |
| 549 |
15754 |
12533 |
176 |
| 549 |
15755 |
12535 |
176 |
| 549 |
15756 |
12537 |
176 |
| 549 |
16334 |
12532 |
177 |
| 549 |
16335 |
12537 |
177 |
| 549 |
16338 |
12531 |
178 |
| 549 |
16339 |
12535 |
178 |
| 549 |
16340 |
12539 |
179 |
| 549 |
16344 |
12532 |
179 |
| 549 |
16345 |
12537 |
179 |
| 549 |
16348 |
12530 |
180 |
| 549 |
16349 |
12528 |
180 |
| 549 |
16350 |
12531 |
180 |