QUERY PLAN
HashAggregate (cost=1399.08..1406.92 rows=784 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=52.51..1392.86 rows=1243 width=8)
Recheck Cond: (client_id = ANY ('{141,3056,2032,2736,189,2182,24,101,54,18}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..52.20 rows=1244 width=0)
Index Cond: (client_id = ANY ('{141,3056,2032,2736,189,2182,24,101,54,18}'::integer[]))