Query time 0.00032
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 |
368 |
5723 |
51 |
| 45 |
439 |
5724 |
51 |
| 45 |
440 |
5725 |
51 |
| 45 |
441 |
5726 |
51 |
| 45 |
442 |
5727 |
51 |
| 45 |
443 |
5728 |
51 |
| 45 |
444 |
5729 |
51 |
| 45 |
445 |
5730 |
51 |
| 45 |
446 |
5731 |
51 |
| 45 |
432 |
5732 |
51 |
| 45 |
433 |
5733 |
51 |
| 45 |
434 |
5734 |
51 |
| 45 |
435 |
5735 |
51 |
| 45 |
436 |
5736 |
51 |
| 45 |
437 |
5737 |
51 |
| 45 |
438 |
5738 |
51 |