QUERY PLAN
Sort (cost=48.96..48.99 rows=11 width=21)
Sort Key: tbl_project_architects.contribution DESC, tbl_project_architects.engineer_id
-> Hash Left Join (cost=36.09..48.77 rows=11 width=21)
Hash Cond: (tbl_project_architects.engineer_id = u.id)
-> Bitmap Heap Scan on tbl_project_architects (cost=26.85..39.50 rows=11 width=12)
Recheck Cond: (project_id = ANY ('{263,1111,2504,1791,4111,1972,3910,3577,3873,4055}'::integer[]))
-> Bitmap Index Scan on tbl_project_architects_project_engineer_idx (cost=0.00..26.85 rows=11 width=0)
Index Cond: (project_id = ANY ('{263,1111,2504,1791,4111,1972,3910,3577,3873,4055}'::integer[]))
-> Hash (cost=7.44..7.44 rows=144 width=13)
-> Seq Scan on tbl_users u (cost=0.00..7.44 rows=144 width=13)