Query time 0.00030
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.009256395,
"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": 3,
"cost": 0.002085975,
"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_dev.gpf.feature_id",
"u985510652_ecartify_dev.gp.product_id"
],
"loops": 3,
"rows": 1,
"cost": 0.005377815,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 549 |
2932 |
1199 |
12 |
| 549 |
2933 |
1200 |
12 |
| 549 |
2934 |
1201 |
12 |