QUERY PLAN
HashAggregate (cost=1408.88..1416.90 rows=802 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=52.97..1402.41 rows=1295 width=8)
Recheck Cond: (client_id = ANY ('{97,3312,2818,3284,3262,287,2202,497,1663,12}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..52.65 rows=1297 width=0)
Index Cond: (client_id = ANY ('{97,3312,2818,3284,3262,287,2202,497,1663,12}'::integer[]))