QUERY PLAN
HashAggregate (cost=343.78..343.89 rows=11 width=4)
Group Key: client.sales_rep
-> Hash Left Join (cost=326.48..342.25 rows=615 width=4)
Hash Cond: (p.client_id = client.id)
-> Hash Join (cost=198.11..212.26 rows=615 width=4)
Hash Cond: (prr.project_id = p.id)
-> Seq Scan on tbl_project_remind_receivers prr (cost=0.00..12.54 rows=615 width=4)
Filter: (user_id = 1001)
-> Hash (cost=163.05..163.05 rows=2805 width=8)
-> Seq Scan on tbl_projects p (cost=0.00..163.05 rows=2805 width=8)
-> Hash (cost=104.83..104.83 rows=1883 width=8)
-> Seq Scan on tbl_clients client (cost=0.00..104.83 rows=1883 width=8)