Query time 0.00047
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.020375825,
"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": 7,
"cost": 0.004290555,
"filtered": 100,
"attached_condition": "gp.group_id in (61,58)",
"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": 7,
"rows": 1,
"cost": 0.007633035,
"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": 7,
"rows": 1,
"cost": 0.008452235,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 50 |
727 |
5760 |
58 |
| 51 |
727 |
5762 |
58 |
| 50 |
728 |
5761 |
58 |
| 51 |
728 |
5762 |
58 |
| 50 |
729 |
5761 |
58 |
| 51 |
729 |
5763 |
58 |
| 50 |
730 |
5759 |
58 |
| 51 |
730 |
5762 |
58 |
| 50 |
731 |
5759 |
58 |
| 51 |
731 |
5763 |
58 |
| 27 |
148 |
5661 |
61 |
| 27 |
759 |
5662 |
61 |