GroupAggregate (cost=851.58..852.60 rows=51 width=36) |
Group Key: c.project_id |
-> Sort (cost=851.58..851.71 rows=52 width=36) |
Sort Key: c.project_id |
-> Hash Right Join (cost=650.57..850.09 rows=52 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=447.01..447.01 rows=52 width=8) |
-> Seq Scan on tbl_cases c (cost=0.00..447.01 rows=52 width=8) |
Filter: (project_id = ANY ('{3940,3807,3256,3841,3906,3874,3873,3797,3781,3776,3740,3657,3708,3707,3706,3705,3522,3709,3676,3504}'::integer[])) |