Query time 0.00113
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 (12509,12508,12507,12500,12504,12502)"
}
},
{
"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 |
20001 |
16600 |
69908 |
12500 |
20001 |
16599 |
69907 |
12500 |
20001 |
5556 |
69909 |
12500 |
20003 |
16604 |
69914 |
12502 |
20003 |
16603 |
69913 |
12502 |
20003 |
5554 |
69915 |
12502 |
20005 |
16608 |
69920 |
12504 |
20005 |
16607 |
69919 |
12504 |
20005 |
5552 |
69921 |
12504 |
20008 |
50076 |
69928 |
12507 |
20008 |
50077 |
69929 |
12507 |
20008 |
5549 |
69930 |
12507 |
20009 |
16616 |
69932 |
12508 |
20009 |
16615 |
69931 |
12508 |
20009 |
5548 |
69933 |
12508 |
20010 |
16618 |
69935 |
12509 |
20010 |
16617 |
69934 |
12509 |
20010 |
5547 |
69936 |
12509 |