QUERY PLAN
Sort (cost=52.20..52.25 rows=21 width=21)
Sort Key: tbl_project_architects.contribution DESC, tbl_project_architects.engineer_id
-> Hash Left Join (cost=38.95..51.74 rows=21 width=21)
Hash Cond: (tbl_project_architects.engineer_id = u.id)
-> Bitmap Heap Scan on tbl_project_architects (cost=29.71..42.44 rows=21 width=12)
Recheck Cond: (project_id = ANY ('{4184,4182,4186,4185,4183,4181,4174,4173,4172,4171,4170,4169,4168,4167,4166,4144,4161,4164,4151,4157}'::integer[]))
-> Bitmap Index Scan on tbl_project_architects_project_engineer_idx (cost=0.00..29.70 rows=21 width=0)
Index Cond: (project_id = ANY ('{4184,4182,4186,4185,4183,4181,4174,4173,4172,4171,4170,4169,4168,4167,4166,4144,4161,4164,4151,4157}'::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)