QUERY PLAN
HashAggregate (cost=1179.01..1184.32 rows=531 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=48.25..1175.54 rows=693 width=8)
Recheck Cond: (client_id = ANY ('{3328,543,3134,94,571,2173,4,520,2158,3330}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..48.07 rows=694 width=0)
Index Cond: (client_id = ANY ('{3328,543,3134,94,571,2173,4,520,2158,3330}'::integer[]))