QUERY PLAN
Sort (cost=9.65..9.71 rows=24 width=269)
Sort Key: d."order", u.department_id, u.department_position_id
-> Hash Left Join (cost=1.20..9.10 rows=24 width=269)
Hash Cond: (u.department_id = d.id)
-> Seq Scan on tbl_users u (cost=0.00..7.80 rows=24 width=267)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=1.09..1.09 rows=9 width=6)
-> Seq Scan on tbl_departments d (cost=0.00..1.09 rows=9 width=6)