QUERY PLAN
GroupAggregate (cost=471.24..670.82 rows=3 width=36)
Group Key: c.project_id
-> Hash Right Join (cost=471.24..670.76 rows=3 width=36)
Hash Cond: (tbl_case_assignments.case_id = c.id)
-> HashAggregate (cost=202.91..302.17 rows=7941 width=36)
Group Key: tbl_case_assignments.case_id
-> Seq Scan on tbl_case_assignments (cost=0.00..162.94 rows=7994 width=12)
-> Hash (cost=268.29..268.29 rows=3 width=8)
-> Seq Scan on tbl_cases c (cost=0.00..268.29 rows=3 width=8)
Filter: (project_id = 3880)