QUERY PLAN
Sort (cost=28.83..28.84 rows=3 width=21)
Sort Key: tbl_project_architects.contribution DESC, tbl_project_architects.engineer_id
-> Hash Right Join (cost=20.43..28.80 rows=3 width=21)
Hash Cond: (u.id = tbl_project_architects.engineer_id)
-> Seq Scan on tbl_users u (cost=0.00..7.44 rows=144 width=13)
-> Hash (cost=20.40..20.40 rows=3 width=12)
-> Bitmap Heap Scan on tbl_project_architects (cost=12.86..20.40 rows=3 width=12)
Recheck Cond: (project_id = ANY ('{4168,3568,3544}'::integer[]))
-> Bitmap Index Scan on tbl_project_architects_project_engineer_idx (cost=0.00..12.86 rows=3 width=0)
Index Cond: (project_id = ANY ('{4168,3568,3544}'::integer[]))