QUERY PLAN
GroupAggregate (cost=425.21..427.09 rows=105 width=12)
Group Key: project_id
-> Sort (cost=425.21..425.49 rows=110 width=8)
Sort Key: project_id
-> Bitmap Heap Scan on tbl_work_logs (cost=82.58..421.48 rows=110 width=8)
Recheck Cond: (project_id = ANY ('{1018,4184,4186,4126,2290,4024,4185,4182,4183,4181,4174,4146,3957,3796,3854,4173,4180,4179,4178,4177}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_project_id_idx (cost=0.00..82.55 rows=110 width=0)
Index Cond: (project_id = ANY ('{1018,4184,4186,4126,2290,4024,4185,4182,4183,4181,4174,4146,3957,3796,3854,4173,4180,4179,4178,4177}'::integer[]))