Skip to content

Commit 9c1070c

Browse files
authored
Merge pull request #6486 from NHSDigital/performance-boost-programme-status-updater
Reduce `PatientStatusUpdater` batch size to improve performance
2 parents fcc1bfe + 1518701 commit 9c1070c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/lib/patient_status_updater.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def update_programme_statuses!
5151
:vaccination_records,
5252
:parents
5353
)
54-
.find_in_batches(batch_size: 10_000) do |batch|
54+
.find_in_batches do |batch|
5555
batch.each(&:assign)
5656

5757
Patient::ProgrammeStatus.import!(

0 commit comments

Comments
 (0)