Query time 0.00105
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": 14,
"filtered": 100,
"index_condition": "gp.group_id in (12729,12725,12726,12724,12728,12727)"
}
},
{
"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 |
20266 |
18270 |
70914 |
12724 |
20266 |
18269 |
70915 |
12724 |
20266 |
4394 |
70913 |
12724 |
20267 |
18271 |
70917 |
12725 |
20267 |
4393 |
70916 |
12725 |
20268 |
18272 |
70919 |
12726 |
20268 |
4392 |
70918 |
12726 |
20269 |
18273 |
70921 |
12727 |
20269 |
4391 |
70920 |
12727 |
20270 |
18274 |
70923 |
12728 |
20270 |
4390 |
70922 |
12728 |
20271 |
18277 |
70926 |
12729 |
20271 |
18276 |
70925 |
12729 |
20271 |
18275 |
70927 |
12729 |
20271 |
4389 |
70924 |
12729 |