QUERY PLAN
HashAggregate (cost=821.19..824.14 rows=295 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=45.53..819.51 rows=336 width=8)
Recheck Cond: (client_id = ANY ('{1661,3375,2128,2492,3360,3361,3329,2547,3365,2158}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..45.45 rows=336 width=0)
Index Cond: (client_id = ANY ('{1661,3375,2128,2492,3360,3361,3329,2547,3365,2158}'::integer[]))