QUERY PLAN
HashAggregate (cost=1153.96..1159.07 rows=511 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=48.01..1150.67 rows=658 width=8)
Recheck Cond: (client_id = ANY ('{2007,2505,427,498,518,2821,3331,31,2153,2546}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..47.85 rows=659 width=0)
Index Cond: (client_id = ANY ('{2007,2505,427,498,518,2821,3331,31,2153,2546}'::integer[]))