app/services/normalized_marc_record_reader.rb
# Return the full list of MarcRecord id values to include in the dump.
# Note: ideally we'd be able to iterate through that list, but e.g. #find_each
#   does not support custom ordering (which we need in order to ensure we identify
#   the most recent record for each 001)
# @return [Array<Integer>] the list of MarcRecord id values
Return the full list of MarcRecord id values to include in the dump.
Note: ideally we'd be able to iterate through that list, but e.g. #find_each
does not support custom ordering (which we need in order to ensure we identify
the most recent record for each 001)
Return the full list of MarcRecord id values to include in the dump . Note : ideally we ' d be able to iterate through that list but e . g . #find_each does not support custom ordering ( which we need in order to ensure we identify the most recent record for each 001 )
def current_marc_record_ids
    return __pgsql_current_marc_record_ids if using_postgres?
    hash = {}
    MarcRecord.select(:marc001, :id).where(upload: uploads).order(file_id: :asc, id: :asc).each do |record|
      hash[record.marc001] = record.id
    end
    hash.values
  end
def current_marc_record_ids return __pgsql_current_marc_record_ids if using_postgres? hash = { } MarcRecord . select ( :marc001 , :id ) . where ( upload : uploads ) . order ( file_id : :asc , id : :asc ) . each do | record | hash [ record . marc001 ] = record . id end hash . values end
Return the full list of MarcRecord id values to include in the dump.
Return the full list of MarcRecord id values to include in the dump .
# But for other databases, we'll have to do it ourselves.
the list of MarcRecord id values
the list of MarcRecord id values
Array<Integer>