QUERY PLAN
Unique (cost=53.32..53.37 rows=10 width=4)
-> Sort (cost=53.32..53.35 rows=10 width=4)
Sort Key: client.sales_rep
-> Nested Loop Left Join (cost=35.76..53.15 rows=10 width=4)
-> Hash Join (cost=35.62..47.20 rows=10 width=4)
Hash Cond: (p.id = prr.project_id)
-> Seq Scan on tbl_projects p (cost=0.00..11.10 rows=110 width=8)
-> Hash (cost=35.50..35.50 rows=10 width=4)
-> Seq Scan on tbl_project_remind_receivers prr (cost=0.00..35.50 rows=10 width=4)
Filter: (user_id = 5493)
-> Index Scan using tbl_clients_pkey on tbl_clients client (cost=0.14..0.59 rows=1 width=8)
Index Cond: (id = p.client_id)