Query time 0.00036
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.020892135,
"nested_loop": [
{
"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": ["const"],
"loops": 1,
"rows": 1,
"cost": 0.001792605,
"filtered": 100,
"using_index": true
}
},
{
"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": 9,
"cost": 0.002966085,
"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",
"u985510652_ecartify_abhi.gpf.feature_id",
"u985510652_ecartify_abhi.gp.product_id"
],
"loops": 9,
"rows": 1,
"cost": 0.016133445,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 548 |
232 |
2484 |
12 |
| 548 |
786967 |
2482 |
12 |
| 548 |
786968 |
2483 |
12 |
| 548 |
786969 |
2491 |
12 |
| 548 |
786970 |
1193 |
12 |
| 548 |
786971 |
1194 |
12 |
| 548 |
786972 |
1195 |
12 |
| 548 |
786973 |
1197 |
12 |
| 548 |
786974 |
1196 |
12 |