QUERY PLAN
GroupAggregate (cost=476.64..678.41 rows=3 width=36)
Group Key: c.project_id
-> Hash Right Join (cost=476.64..678.36 rows=3 width=36)
Hash Cond: (tbl_case_assignments.case_id = c.id)
-> HashAggregate (cost=205.23..305.58 rows=8028 width=36)
Group Key: tbl_case_assignments.case_id
-> Seq Scan on tbl_case_assignments (cost=0.00..164.82 rows=8082 width=12)
-> Hash (cost=271.38..271.38 rows=3 width=8)
-> Seq Scan on tbl_cases c (cost=0.00..271.38 rows=3 width=8)
Filter: (project_id = 3880)