Query time 0.00225
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": 18,
"filtered": 100,
"index_condition": "gp.group_id in (13661,13662,13660,13656,13657,13659)"
}
},
{
"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 |
21287 |
22062 |
74486 |
13656 |
21287 |
22061 |
74487 |
13656 |
21287 |
2019 |
74485 |
13656 |
21288 |
22064 |
74489 |
13657 |
21288 |
22063 |
74490 |
13657 |
21288 |
2018 |
74488 |
13657 |
21290 |
22068 |
74495 |
13659 |
21290 |
22067 |
74496 |
13659 |
21290 |
2016 |
74494 |
13659 |
21291 |
22070 |
74498 |
13660 |
21291 |
22069 |
74499 |
13660 |
21291 |
2015 |
74497 |
13660 |
21292 |
22072 |
74501 |
13661 |
21292 |
22071 |
74502 |
13661 |
21292 |
2014 |
74500 |
13661 |
21293 |
22074 |
74504 |
13662 |
21293 |
22073 |
74505 |
13662 |
21293 |
2013 |
74503 |
13662 |