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 ('{3927,3807,3580,3666,3461,3949,3827,3751,3931,3902}'::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 ('{3927,3807,3580,3666,3461,3949,3827,3751,3931,3902}'::integer[]))