Query time 0.02330
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": 15,
"filtered": 100,
"index_condition": "gp.group_id in (13270,13370,13268,13269)"
}
},
{
"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 |
20867 |
20658 |
72930 |
13268 |
20867 |
20657 |
72929 |
13268 |
20867 |
20656 |
72928 |
13268 |
20867 |
20655 |
72927 |
13268 |
20867 |
2912 |
72931 |
13268 |
20868 |
20664 |
72937 |
13269 |
20868 |
20663 |
72936 |
13269 |
20868 |
20662 |
72935 |
13269 |
20868 |
20661 |
72934 |
13269 |
20868 |
20660 |
72933 |
13269 |
20868 |
20659 |
72932 |
13269 |
20868 |
2911 |
72938 |
13269 |
20869 |
20667 |
72941 |
13270 |
20869 |
20666 |
72940 |
13270 |
20869 |
20665 |
72939 |
13270 |
20869 |
2909 |
72942 |
13270 |
20977 |
20930 |
73300 |
13370 |
20977 |
2576 |
73301 |
13370 |