QUERY PLAN
HashAggregate (cost=361.12..361.21 rows=9 width=4)
Group Key: client.sales_rep
-> Hash Left Join (cost=157.62..359.45 rows=668 width=4)
Hash Cond: (p.client_id = client.id)
-> Hash Join (cost=23.66..223.74 rows=668 width=4)
Hash Cond: (p.id = prr.project_id)
-> Seq Scan on tbl_projects p (cost=0.00..177.60 rows=3160 width=8)
-> Hash (cost=15.31..15.31 rows=668 width=4)
-> Seq Scan on tbl_project_remind_receivers prr (cost=0.00..15.31 rows=668 width=4)
Filter: (user_id = 1001)
-> Hash (cost=108.98..108.98 rows=1998 width=8)
-> Seq Scan on tbl_clients client (cost=0.00..108.98 rows=1998 width=8)