QUERY PLAN
HashAggregate (cost=1452.60..1460.81 rows=821 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=53.28..1445.92 rows=1336 width=8)
Recheck Cond: (client_id = ANY ('{16,1331,121,1307,54,2182,107,3309,1663,304}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..52.95 rows=1338 width=0)
Index Cond: (client_id = ANY ('{16,1331,121,1307,54,2182,107,3309,1663,304}'::integer[]))