Query time 0.00027
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.06585295,
"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": 26,
"cost": 0.01617149,
"filtered": 100,
"attached_condition": "gp.group_id in (31,32,33,34,35,36,37,38,39,40,41,42,43)",
"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": 26,
"rows": 1,
"cost": 0.02612773,
"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": 26,
"rows": 1,
"cost": 0.02355373,
"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 |
| 601 |
13445 |
12566 |
37 |
| 601 |
13473 |
12568 |
37 |
| 601 |
13446 |
12566 |
38 |
| 601 |
13474 |
12568 |
38 |
| 601 |
13447 |
12566 |
39 |
| 601 |
13475 |
12568 |
39 |
| 601 |
13448 |
12566 |
40 |
| 601 |
13476 |
12568 |
40 |
| 601 |
13449 |
12566 |
41 |
| 601 |
13477 |
12568 |
41 |
| 601 |
13450 |
12566 |
42 |
| 601 |
13478 |
12568 |
42 |
| 601 |
13451 |
12566 |
43 |
| 601 |
13479 |
12568 |
43 |