QUERY PLAN
HashAggregate (cost=1286.71..1293.03 rows=632 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=49.80..1282.29 rows=884 width=8)
Recheck Cond: (client_id = ANY ('{141,2736,2182,24,2806,2242,3179,46,530,2166}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..49.57 rows=885 width=0)
Index Cond: (client_id = ANY ('{141,2736,2182,24,2806,2242,3179,46,530,2166}'::integer[]))