QUERY PLAN
GroupAggregate (cost=50.67..50.84 rows=10 width=12)
Group Key: project_id
-> Sort (cost=50.67..50.69 rows=10 width=8)
Sort Key: project_id
-> Bitmap Heap Scan on tbl_work_logs (cost=12.94..50.50 rows=10 width=8)
Recheck Cond: (project_id = ANY ('{4168,3568,3544}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_project_end_at_idx (cost=0.00..12.94 rows=10 width=0)
Index Cond: (project_id = ANY ('{4168,3568,3544}'::integer[]))