From 3bd20e3ff8224d952e0c0db6c0c9f5e0a205331e Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 17 Jul 2023 05:42:17 -0700 Subject: [PATCH] Set batch size to 1,000 Updated as per the comments on the PR so this is ready to merge --- bookwyrm/migrations/0179_populate_sort_title.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/migrations/0179_populate_sort_title.py b/bookwyrm/migrations/0179_populate_sort_title.py index bb1dba437..e238bca1d 100644 --- a/bookwyrm/migrations/0179_populate_sort_title.py +++ b/bookwyrm/migrations/0179_populate_sort_title.py @@ -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: