Query time 0.00823
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": 30,
"filtered": 100,
"index_condition": "gp.group_id in (14672,17231,16954,16992,12120,14367,17116)"
}
},
{
"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 |
19582 |
14736 |
68123 |
12120 |
19582 |
14735 |
68124 |
12120 |
19582 |
6659 |
68122 |
12120 |
22084 |
787 |
77297 |
14367 |
22084 |
24658 |
77299 |
14367 |
22084 |
24659 |
77298 |
14367 |
22410 |
26099 |
78608 |
14672 |
22410 |
298 |
78609 |
14672 |
24724 |
46841 |
86238 |
16954 |
24724 |
46592 |
86237 |
16954 |
24745 |
47020 |
86300 |
16992 |
24745 |
49813 |
87462 |
16992 |
24745 |
49812 |
87461 |
16992 |
24745 |
47118 |
86301 |
16992 |
24863 |
47934 |
86697 |
17116 |
24863 |
47970 |
86698 |
17116 |
24863 |
47971 |
86699 |
17116 |
24863 |
47972 |
86700 |
17116 |
24863 |
47973 |
86701 |
17116 |
24988 |
49005 |
87160 |
17231 |
24988 |
49086 |
87161 |
17231 |
24988 |
49087 |
87162 |
17231 |
24988 |
49088 |
87163 |
17231 |