Query time 0.00239
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": 23,
"filtered": 100,
"index_condition": "gp.group_id in (17001,17006,17007,17000,16999)"
}
},
{
"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 |
24749 |
47127 |
86311 |
16999 |
24749 |
47126 |
86310 |
16999 |
24749 |
47082 |
86309 |
16999 |
24750 |
47130 |
86315 |
17000 |
24750 |
47129 |
86314 |
17000 |
24750 |
47128 |
86313 |
17000 |
24750 |
47083 |
86312 |
17000 |
24751 |
47133 |
86319 |
17001 |
24751 |
47132 |
86318 |
17001 |
24751 |
47131 |
86317 |
17001 |
24751 |
47084 |
86316 |
17001 |
24757 |
47170 |
86333 |
17006 |
24757 |
47169 |
86332 |
17006 |
24757 |
47163 |
86331 |
17006 |
24758 |
47171 |
86335 |
17007 |
24758 |
47162 |
86334 |
17007 |