Query time 0.00714
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": 32,
"filtered": 100,
"index_condition": "gp.group_id in (16947,17242,16930,16946,17245,16931)"
}
},
{
"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 |
24703 |
46748 |
86164 |
16930 |
24703 |
49306 |
86163 |
16930 |
24703 |
49305 |
87193 |
16930 |
24703 |
49307 |
86162 |
16930 |
24704 |
46692 |
86165 |
16931 |
24704 |
46749 |
86166 |
16931 |
24704 |
46750 |
86167 |
16931 |
24717 |
49265 |
86218 |
16946 |
24717 |
49266 |
86219 |
16946 |
24717 |
49263 |
86220 |
16946 |
24717 |
49267 |
87235 |
16946 |
24717 |
46822 |
86219 |
16947 |
24717 |
49271 |
86218 |
16947 |
24717 |
49272 |
86220 |
16947 |
24717 |
49273 |
87235 |
16947 |
24997 |
46690 |
87190 |
17242 |
24997 |
49169 |
87191 |
17242 |
24997 |
49170 |
87192 |
17242 |
24999 |
49181 |
87199 |
17245 |
24999 |
49184 |
87200 |
17245 |
24999 |
46694 |
87197 |
17245 |
24999 |
49180 |
87198 |
17245 |