QUERY PLAN
GroupAggregate (cost=202.63..202.68 rows=2 width=20)
Group Key: project_id
-> Sort (cost=202.63..202.63 rows=2 width=24)
Sort Key: project_id
-> Bitmap Heap Scan on tbl_work_logs (cost=43.28..202.62 rows=2 width=24)
Recheck Cond: (project_id = ANY ('{3577,3874,3578,3507,3749,3623,3723,1352,3714,3144}'::integer[]))
Filter: ((NOT is_draft) AND (scenario_id = 2))
-> Bitmap Index Scan on tbl_work_logs_project_id_idx (cost=0.00..43.27 rows=46 width=0)
Index Cond: (project_id = ANY ('{3577,3874,3578,3507,3749,3623,3723,1352,3714,3144}'::integer[]))