Query time 0.00023
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.035822303,
"nested_loop": [
{
"table": {
"table_name": "f",
"access_type": "ALL",
"possible_keys": ["idx_group_id"],
"loops": 1,
"rows": 4,
"cost": 0.01066122,
"filtered": 100
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["id"],
"ref": ["cscart.f.group_id"],
"loops": 4,
"rows": 1,
"cost": 0.007120904,
"filtered": 100
}
},
{
"block-nl-join": {
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"loops": 4,
"rows": 7,
"cost": 0.018040179,
"filtered": 100,
"index_condition": "p.product_id in (133,134,128,129,130,131,132)",
"attached_condition": "p.product_id in (133,134,128,129,130,131,132)"
},
"buffer_type": "flat",
"buffer_size": "5Kb",
"join_type": "BNL",
"attached_condition": "p.group_id = f.group_id"
}
}
]
}
}