QUERY PLAN
Sort (cost=48.91..48.94 rows=10 width=21)
Sort Key: tbl_project_architects.contribution DESC, tbl_project_architects.engineer_id
-> Hash Left Join (cost=36.09..48.75 rows=10 width=21)
Hash Cond: (tbl_project_architects.engineer_id = u.id)
-> Bitmap Heap Scan on tbl_project_architects (cost=26.85..39.48 rows=10 width=12)
Recheck Cond: (project_id = ANY ('{3854,1018,4184,4186,4126,2290,4024,4185,4182,4183}'::integer[]))
-> Bitmap Index Scan on tbl_project_architects_project_engineer_idx (cost=0.00..26.85 rows=10 width=0)
Index Cond: (project_id = ANY ('{3854,1018,4184,4186,4126,2290,4024,4185,4182,4183}'::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)