QUERY PLAN
HashAggregate (cost=1143.29..1148.32 rows=503 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=47.86..1140.07 rows=644 width=8)
Recheck Cond: (client_id = ANY ('{3337,2815,24,3316,2737,2166,2492,497,3308,2818}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..47.70 rows=645 width=0)
Index Cond: (client_id = ANY ('{3337,2815,24,3316,2737,2166,2492,497,3308,2818}'::integer[]))