QUERY PLAN
GroupAggregate (cost=375.51..376.34 rows=47 width=12)
Group Key: project_id
-> Sort (cost=375.51..375.63 rows=48 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..374.17 rows=48 width=8)
Filter: (project_id = ANY ('{3498,3484,3215,3231,3141,3254,3244,3116,3072,2906}'::integer[]))