QUERY PLAN
GroupAggregate (cost=1447.27..1448.76 rows=54 width=20)
Group Key: client_id
-> Sort (cost=1447.27..1447.40 rows=55 width=24)
Sort Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=44.77..1445.68 rows=55 width=24)
Recheck Cond: (client_id = ANY ('{982,90,1181,497,287,1207,582,592}'::integer[]))
Filter: ((NOT is_draft) AND (scenario_id = 2))
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..44.76 rows=1396 width=0)
Index Cond: (client_id = ANY ('{982,90,1181,497,287,1207,582,592}'::integer[]))