QUERY PLAN
HashAggregate (cost=401.15..402.26 rows=111 width=12)
Group Key: project_id
-> Bitmap Heap Scan on tbl_work_logs (cost=43.83..400.56 rows=117 width=8)
Recheck Cond: (project_id = ANY ('{1111,4187,4184,4139,4174,3796,3854,1018,4186,4126}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_project_end_at_idx (cost=0.00..43.80 rows=117 width=0)
Index Cond: (project_id = ANY ('{1111,4187,4184,4139,4174,3796,3854,1018,4186,4126}'::integer[]))