QUERY PLAN
HashAggregate (cost=691.82..694.13 rows=231 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=44.91..690.54 rows=255 width=8)
Recheck Cond: (client_id = ANY ('{2536,3380,109,2157,2590,29,1835,1043,100,582}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..44.85 rows=256 width=0)
Index Cond: (client_id = ANY ('{2536,3380,109,2157,2590,29,1835,1043,100,582}'::integer[]))