Query time 0.01391
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": 20,
"filtered": 100,
"index_condition": "gp.group_id in (16273,12721,12716,12718,12719,12717)"
}
},
{
"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 |
20258 |
18251 |
70887 |
12716 |
20258 |
18250 |
70886 |
12716 |
20258 |
4442 |
70888 |
12716 |
20259 |
18255 |
70892 |
12717 |
20259 |
18254 |
70891 |
12717 |
20259 |
18253 |
70890 |
12717 |
20259 |
18252 |
70889 |
12717 |
20259 |
4441 |
70893 |
12717 |
20260 |
18257 |
70895 |
12718 |
20260 |
18256 |
70894 |
12718 |
20260 |
4440 |
70896 |
12718 |
20261 |
18259 |
70898 |
12719 |
20261 |
18258 |
70897 |
12719 |
20261 |
4439 |
70899 |
12719 |
20263 |
18264 |
70905 |
12721 |
20263 |
18263 |
70904 |
12721 |
20263 |
18262 |
70903 |
12721 |
20263 |
4437 |
70906 |
12721 |
24054 |
40149 |
83821 |
16273 |
24054 |
40258 |
83822 |
16273 |
24054 |
40259 |
83823 |
16273 |
24054 |
40260 |
83824 |
16273 |
24054 |
40261 |
83825 |
16273 |