QUERY PLAN
GroupAggregate (cost=691.29..691.56 rows=10 width=20)
Group Key: client_id
-> Sort (cost=691.29..691.31 rows=10 width=24)
Sort Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=44.85..691.12 rows=10 width=24)
Recheck Cond: (client_id = ANY ('{2536,3380,109,2157,2590,29,1835,1043,100,582}'::integer[]))
Filter: ((NOT is_draft) AND (scenario_id = 2))
-> 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[]))