Query time 0.01662
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": 18,
"filtered": 100,
"index_condition": "gp.group_id in (14225,14219,14226,14224,14218,14223)"
}
},
{
"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 |
21917 |
24125 |
76716 |
14218 |
21917 |
1054 |
76717 |
14218 |
21918 |
24126 |
76719 |
14219 |
21918 |
1053 |
76718 |
14219 |
21922 |
24132 |
76728 |
14223 |
21922 |
1044 |
76730 |
14223 |
21922 |
24133 |
76729 |
14223 |
21923 |
24135 |
76732 |
14224 |
21923 |
1043 |
76736 |
14224 |
21923 |
24138 |
76735 |
14224 |
21923 |
24137 |
76734 |
14224 |
21923 |
24136 |
76733 |
14224 |
21923 |
24134 |
76731 |
14224 |
21924 |
24140 |
76738 |
14225 |
21924 |
24139 |
76737 |
14225 |
21924 |
1042 |
76739 |
14225 |
21925 |
24142 |
76741 |
14226 |
21925 |
24141 |
76740 |
14226 |
21925 |
1041 |
76742 |
14226 |