Query time 0.00309
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 (17212,17241,17222,17347)"
}
},
{
"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 |
24959 |
48839 |
87026 |
17212 |
24959 |
48840 |
87027 |
17212 |
24959 |
48841 |
87028 |
17212 |
24959 |
48842 |
87029 |
17212 |
24974 |
48980 |
87098 |
17222 |
24974 |
48982 |
87097 |
17222 |
24974 |
48985 |
87096 |
17222 |
24974 |
48984 |
87094 |
17222 |
24974 |
48983 |
87095 |
17222 |
24996 |
49164 |
87185 |
17241 |
24996 |
49174 |
87189 |
17241 |
24996 |
49173 |
87188 |
17241 |
24996 |
49172 |
87187 |
17241 |
24996 |
49171 |
87186 |
17241 |
25128 |
50233 |
87716 |
17347 |
25128 |
50263 |
87715 |
17347 |