Query time 0.00139
JSON explain
{
"query_block": {
"select_id": 1,
"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"],
"rows": 1,
"filtered": 100
}
},
{
"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": ["dev_db.gpf.feature_id", "const"],
"rows": 18,
"filtered": 100,
"index_condition": "pfv.lang_code = 'vi'"
}
},
{
"table": {
"table_name": "gp",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["product_id", "group_id"],
"ref": ["dev_db.pfv.product_id", "const"],
"rows": 1,
"filtered": 100,
"using_index": true
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
24493 |
44520 |
85438 |
16729 |
24493 |
44529 |
85439 |
16729 |
24493 |
44530 |
85440 |
16729 |
24493 |
44531 |
85441 |
16729 |
24493 |
44532 |
85442 |
16729 |
24493 |
44533 |
85443 |
16729 |
24493 |
44534 |
85444 |
16729 |
24493 |
44535 |
85445 |
16729 |
24493 |
44536 |
85446 |
16729 |
24493 |
44525 |
85447 |
16729 |
24493 |
44526 |
85448 |
16729 |
24493 |
44527 |
85449 |
16729 |
24493 |
44528 |
85450 |
16729 |