QUERY PLAN
GroupAggregate (cost=469.75..668.91 rows=3 width=36)
Group Key: c.project_id
-> Hash Right Join (cost=469.75..668.85 rows=3 width=36)
Hash Cond: (tbl_case_assignments.case_id = c.id)
-> HashAggregate (cost=202.64..301.69 rows=7924 width=36)
Group Key: tbl_case_assignments.case_id
-> Seq Scan on tbl_case_assignments (cost=0.00..162.76 rows=7976 width=12)
-> Hash (cost=267.07..267.07 rows=3 width=8)
-> Seq Scan on tbl_cases c (cost=0.00..267.07 rows=3 width=8)
Filter: (project_id = 3927)