QUERY PLAN
HashAggregate (cost=1449.49..1457.89 rows=840 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=45.11..1442.52 rows=1394 width=8)
Recheck Cond: (client_id = ANY ('{982,90,1181,497,287,1207,582,592}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..44.76 rows=1396 width=0)
Index Cond: (client_id = ANY ('{982,90,1181,497,287,1207,582,592}'::integer[]))