Query time 0.00502
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": 10,
"filtered": 100,
"index_condition": "gp.group_id in (17002,15091,15544)"
}
},
{
"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 |
22943 |
28331 |
80000 |
15091 |
22943 |
28330 |
79999 |
15091 |
22943 |
28329 |
79998 |
15091 |
22943 |
28240 |
79997 |
15091 |
23413 |
33198 |
81211 |
15544 |
23414 |
33198 |
81213 |
15544 |
23413 |
33225 |
81211 |
15544 |
23414 |
33225 |
81214 |
15544 |
23413 |
33226 |
81212 |
15544 |
23414 |
33226 |
81213 |
15544 |
23413 |
33227 |
81212 |
15544 |
23414 |
33227 |
81214 |
15544 |
24752 |
47135 |
86322 |
17002 |
24752 |
47134 |
86321 |
17002 |
24752 |
47086 |
86320 |
17002 |