Query time 0.00145
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": 17,
"filtered": 100,
"index_condition": "gp.group_id in (17040,17039,17041,17037,17038)"
}
},
{
"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 |
24788 |
47405 |
86483 |
17037 |
24788 |
47389 |
86482 |
17037 |
24789 |
47407 |
86486 |
17038 |
24789 |
47406 |
86485 |
17038 |
24789 |
47390 |
86484 |
17038 |
24790 |
47391 |
86487 |
17039 |
24790 |
47409 |
86489 |
17039 |
24790 |
47408 |
86488 |
17039 |
24791 |
47410 |
86491 |
17040 |
24791 |
47392 |
86490 |
17040 |
24792 |
47411 |
86493 |
17041 |
24792 |
47393 |
86492 |
17041 |