app/importers/helpers/student_ids_map.rb
# Build map all at once, as a performance optimization
Build map all at once, as a performance optimization
Build map all at once as a performance optimization
def reset!
    @student_ids_map = {}
    Student.pluck(:id, :local_id).each do |id, local_id|
      @student_ids_map[local_id] = id
    end
    self
  end
def reset! @student_ids_map = { } Student . pluck ( :id , :local_id ) . each do | id , local_id | @student_ids_map [ local_id ] = id end self end
Build map all at once, as a performance optimization
Build map all at once as a performance optimization