Query time 0.00031
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.025389535,
"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": 9,
"cost": 0.005410645,
"filtered": 100,
"attached_condition": "gp.group_id in (21,57,37)",
"using_index": true
}
},
{
"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": ["u428615623_ecartifygonje.gp.group_id"],
"loops": 9,
"rows": 1,
"cost": 0.009579845,
"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": "lang_code",
"key_length": "12",
"used_key_parts": ["lang_code", "feature_id", "product_id"],
"ref": [
"const",
"u428615623_ecartifygonje.gpf.feature_id",
"u428615623_ecartifygonje.gp.product_id"
],
"loops": 9,
"rows": 1,
"cost": 0.010399045,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 27 |
91 |
5661 |
21 |
| 27 |
96 |
5662 |
21 |
| 27 |
97 |
5663 |
21 |
| 27 |
98 |
5664 |
21 |
| 39 |
228 |
5706 |
37 |
| 39 |
229 |
5705 |
37 |
| 32 |
701 |
5674 |
57 |
| 32 |
702 |
5673 |
57 |
| 32 |
708 |
5675 |
57 |