QUERY PLAN
HashAggregate (cost=1442.43..1450.22 rows=779 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=52.36..1436.33 rows=1221 width=8)
Recheck Cond: (client_id = ANY ('{518,531,1225,3284,2186,3312,141,304,2146,24}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..52.05 rows=1223 width=0)
Index Cond: (client_id = ANY ('{518,531,1225,3284,2186,3312,141,304,2146,24}'::integer[]))