From ad1ddf2bff9c8647775b8624115bf4aba891b2fd Mon Sep 17 00:00:00 2001 From: Zach Flanders Date: Sat, 29 Apr 2023 09:48:01 -0500 Subject: [PATCH] Fixing batch size --- 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 c5bdcb25c..bb1dba437 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 = 20 + batch_size = 50000 start = 0 end = batch_size while True: