Query time 0.00035
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.016399674,
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"ref": ["const"],
"loops": 1,
"rows": 5,
"cost": 0.002379345,
"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": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["u428615623_ecartifygonje.gp.product_id"],
"loops": 5,
"rows": 4,
"cost": 0.0087057,
"filtered": 25.70564461,
"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": ["const", "u428615623_ecartifygonje.pfv.feature_id"],
"loops": 5.141129032,
"rows": 1,
"cost": 0.005314629,
"filtered": 100,
"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 |