Set batch size to 1,000

Updated as per the comments on the PR so this is ready to merge
This commit is contained in:
Mouse Reeve 2023-07-17 05:42:17 -07:00 committed by GitHub
parent a601be4708
commit 3bd20e3ff8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ def populate_sort_title(apps, schema_editor):
editions_wo_sort_title = Edition.objects.using(db_alias).filter(
Q(sort_title__isnull=True) | Q(sort_title__exact="")
)
batch_size = 50000
batch_size = 1000
start = 0
end = batch_size
while True: