Query time 0.00768
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.011793986,
"nested_loop": [
{
"table": {
"table_name": "g",
"access_type": "system",
"possible_keys": ["PRIMARY"],
"rows": 1,
"filtered": 100
}
},
{
"table": {
"table_name": "f",
"access_type": "ref",
"possible_keys": ["idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"ref": ["const"],
"loops": 1,
"rows": 2,
"cost": 0.00325828,
"filtered": 100
}
},
{
"block-nl-join": {
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["product_id", "group_id"],
"loops": 2,
"rows": 4,
"cost": 0.008535706,
"filtered": 100,
"index_condition": "p.group_id = 10 and p.product_id in (125,120,117,113)",
"attached_condition": "p.group_id = 10 and p.product_id in (125,120,117,113)"
},
"buffer_type": "flat",
"buffer_size": "1Kb",
"join_type": "BNL"
}
}
]
}
}