QUERY PLAN
GroupAggregate (cost=752.13..752.46 rows=12 width=20)
Group Key: client_id
-> Sort (cost=752.13..752.16 rows=12 width=24)
Sort Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=45.15..751.92 rows=12 width=24)
Recheck Cond: (client_id = ANY ('{399,1661,2120,2162,2169,1465,2147,1283,2095,39}'::integer[]))
Filter: ((NOT is_draft) AND (scenario_id = 2))
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..45.15 rows=296 width=0)
Index Cond: (client_id = ANY ('{399,1661,2120,2162,2169,1465,2147,1283,2095,39}'::integer[]))