Query time 0.00442
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 (16089,16082,15201,15195,15199,15200)"
}
},
{
"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 |
23132 |
29906 |
80194 |
15195 |
23132 |
29905 |
80193 |
15195 |
23132 |
29904 |
80192 |
15195 |
23132 |
29903 |
80191 |
15195 |
23132 |
29811 |
80190 |
15195 |
23136 |
29920 |
80212 |
15199 |
23136 |
29919 |
80211 |
15199 |
23136 |
29918 |
80210 |
15199 |
23136 |
29917 |
80209 |
15199 |
23136 |
29916 |
80208 |
15199 |
23136 |
29915 |
80207 |
15199 |
23136 |
29914 |
80206 |
15199 |
23136 |
29815 |
80205 |
15199 |
23137 |
29923 |
80216 |
15200 |
23137 |
29922 |
80215 |
15200 |
23137 |
29921 |
80214 |
15200 |
23137 |
29816 |
80213 |
15200 |
23138 |
29926 |
80220 |
15201 |
23138 |
29925 |
80219 |
15201 |
23138 |
29924 |
80218 |
15201 |
23138 |
29817 |
80217 |
15201 |
23905 |
38122 |
83157 |
16082 |
23905 |
38296 |
83158 |
16082 |
23905 |
38297 |
83159 |
16082 |
23905 |
38298 |
83160 |
16082 |
23913 |
38129 |
83177 |
16089 |
23913 |
38309 |
83178 |
16089 |
23913 |
38310 |
83179 |
16089 |
23913 |
38311 |
83180 |
16089 |