QUERY PLAN
GroupAggregate (cost=203.78..204.58 rows=45 width=12)
Group Key: project_id
-> Sort (cost=203.78..203.90 rows=46 width=8)
Sort Key: project_id
-> Bitmap Heap Scan on tbl_work_logs (cost=43.29..202.51 rows=46 width=8)
Recheck Cond: (project_id = ANY ('{3577,3874,3578,3507,3749,3623,3723,1352,3714,3144}'::integer[]))
Filter: (NOT is_draft)
-> 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[]))