Query time 0.00353
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": 49,
"filtered": 100,
"index_condition": "gp.group_id in (16859,16898,17175,16753,16337,16860,16641,13644,16672,13645)"
}
},
{
"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 |
21274 |
22021 |
74435 |
13644 |
21274 |
2044 |
74436 |
13644 |
21275 |
22022 |
74437 |
13645 |
21275 |
2042 |
74438 |
13645 |
24125 |
40713 |
84080 |
16337 |
24125 |
40714 |
84081 |
16337 |
24125 |
40715 |
84082 |
16337 |
24125 |
40716 |
84083 |
16337 |
24125 |
40717 |
84084 |
16337 |
24125 |
40718 |
84085 |
16337 |
24421 |
43562 |
85130 |
16641 |
24421 |
43561 |
85129 |
16641 |
24421 |
43560 |
85128 |
16641 |
24421 |
43477 |
85127 |
16641 |
24447 |
43856 |
85266 |
16672 |
24447 |
43863 |
85267 |
16672 |
24520 |
44783 |
85539 |
16753 |
24520 |
44758 |
85538 |
16753 |
24520 |
44784 |
85540 |
16753 |
24520 |
44785 |
85541 |
16753 |
24627 |
45029 |
85960 |
16859 |
24627 |
45652 |
85961 |
16859 |
24627 |
45653 |
85962 |
16859 |
24627 |
45654 |
85963 |
16859 |
24628 |
45241 |
85964 |
16860 |
24628 |
45655 |
85965 |
16860 |
24628 |
45656 |
85966 |
16860 |
24628 |
45657 |
85967 |
16860 |
24661 |
46207 |
86054 |
16898 |
24662 |
46207 |
86055 |
16898 |
24661 |
46206 |
86053 |
16898 |
24662 |
46206 |
86057 |
16898 |
24661 |
46205 |
86053 |
16898 |
24662 |
46205 |
86056 |
16898 |
24661 |
46155 |
86053 |
16898 |
24662 |
46155 |
86055 |
16898 |
24661 |
46209 |
86054 |
16898 |
24662 |
46209 |
86057 |
16898 |
24661 |
46208 |
86054 |
16898 |
24662 |
46208 |
86056 |
16898 |
24920 |
48560 |
86900 |
17175 |
24920 |
48562 |
86901 |
17175 |
24920 |
48563 |
86902 |
17175 |