Query time 0.00355
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "range",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"rows": 16,
"filtered": 100,
"index_condition": "gp.group_id in (14683,12458,14681,14680,12454)"
}
},
{
"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": ["dev_db.gp.group_id"],
"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": "idx_product_feature_variant_id",
"key_length": "12",
"used_key_parts": ["product_id", "feature_id", "lang_code"],
"ref": ["dev_db.gp.product_id", "dev_db.gpf.feature_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'vi'",
"using_index": true
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
19952 |
16440 |
69717 |
12454 |
19952 |
5734 |
69718 |
12454 |
19956 |
16463 |
69744 |
12458 |
19956 |
5728 |
69745 |
12458 |
22418 |
50094 |
78641 |
14680 |
22418 |
50095 |
78642 |
14680 |
22418 |
50096 |
78643 |
14680 |
22418 |
50097 |
78644 |
14680 |
22418 |
50098 |
78645 |
14680 |
22418 |
289 |
78649 |
14680 |
22418 |
50101 |
78648 |
14680 |
22418 |
50100 |
78647 |
14680 |
22418 |
50099 |
78646 |
14680 |
22419 |
26132 |
78650 |
14681 |
22419 |
286 |
78651 |
14681 |
22421 |
26136 |
78656 |
14683 |
22421 |
26135 |
78655 |
14683 |