Query time 0.00033
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.016277825,
"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": 10,
"cost": 0.00311277,
"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.gpf.feature_id",
"u985510652_ecartify.gp.product_id"
],
"loops": 10,
"rows": 1,
"cost": 0.01137245,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 563 |
312888 |
1275 |
12 |
| 563 |
390924 |
1281 |
12 |
| 563 |
390925 |
1273 |
12 |
| 563 |
390926 |
1274 |
12 |
| 563 |
390927 |
1276 |
12 |
| 563 |
390928 |
1277 |
12 |
| 563 |
390929 |
1278 |
12 |
| 563 |
390930 |
1272 |
12 |
| 563 |
390931 |
1279 |
12 |
| 563 |
390932 |
1280 |
12 |