Browse Source

refactor: use exists?, not where+present? to improve performance

cldc-1888-bulk-upload-duplicate-log-validation
Sam Seed 2 years ago
parent
commit
06fc38204c
  1. 2
      app/services/bulk_upload/lettings/row_parser.rb

2
app/services/bulk_upload/lettings/row_parser.rb

@ -329,7 +329,7 @@ private
"ethnic" => field_43,
}
LettingsLog.where(field_mappings).present?
LettingsLog.exists?(field_mappings)
end
def field_mapping_for_errors

Loading…
Cancel
Save