QUERY PLAN
HashAggregate (cost=379.06..380.10 rows=104 width=12)
Group Key: project_id
-> Bitmap Heap Scan on tbl_work_logs (cost=43.75..378.52 rows=109 width=8)
Recheck Cond: (project_id = ANY ('{1018,2290,4024,4176,3880,3878,2282,3713,3980,2684}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_project_end_at_idx (cost=0.00..43.73 rows=109 width=0)
Index Cond: (project_id = ANY ('{1018,2290,4024,4176,3880,3878,2282,3713,3980,2684}'::integer[]))