Query time 0.00115
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 (14179,14175,14178,14174,14176,14177)"
}
},
{
"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 |
21869 |
1129 |
76550 |
14174 |
21869 |
23985 |
76547 |
14174 |
21869 |
23986 |
76548 |
14174 |
21869 |
23987 |
76549 |
14174 |
21870 |
1128 |
76552 |
14175 |
21870 |
23988 |
76551 |
14175 |
21871 |
1127 |
76555 |
14176 |
21871 |
23989 |
76553 |
14176 |
21871 |
23990 |
76554 |
14176 |
21872 |
1126 |
76557 |
14177 |
21872 |
23991 |
76556 |
14177 |
21873 |
1125 |
76559 |
14178 |
21873 |
23992 |
76558 |
14178 |
21874 |
1124 |
76561 |
14179 |
21874 |
23993 |
76560 |
14179 |