Query time 0.00031
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.014468625,
"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": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "fl",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"ref": ["u428615623_ecartifygonje.gpf.feature_id", "const"],
"loops": 1,
"rows": 10,
"cost": 0.00311277,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
},
{
"table": {
"table_name": "gp",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "6",
"used_key_parts": ["group_id", "product_id"],
"ref": ["const", "u428615623_ecartifygonje.pfv.product_id"],
"loops": 10,
"rows": 1,
"cost": 0.00956325,
"filtered": 100,
"using_index": true
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 45 |
367 |
5723 |
49 |
| 45 |
402 |
5724 |
49 |
| 45 |
409 |
5725 |
49 |
| 45 |
410 |
5726 |
49 |
| 45 |
411 |
5727 |
49 |
| 45 |
412 |
5728 |
49 |
| 45 |
413 |
5729 |
49 |
| 45 |
414 |
5730 |
49 |
| 45 |
415 |
5731 |
49 |
| 45 |
403 |
5732 |
49 |
| 45 |
404 |
5733 |
49 |
| 45 |
405 |
5734 |
49 |
| 45 |
406 |
5735 |
49 |
| 45 |
407 |
5736 |
49 |
| 45 |
408 |
5737 |
49 |
| 45 |
416 |
5738 |
49 |