mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 04:51:11 +00:00
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:
parent
a601be4708
commit
3bd20e3ff8
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ def populate_sort_title(apps, schema_editor):
|
||||||
editions_wo_sort_title = Edition.objects.using(db_alias).filter(
|
editions_wo_sort_title = Edition.objects.using(db_alias).filter(
|
||||||
Q(sort_title__isnull=True) | Q(sort_title__exact="")
|
Q(sort_title__isnull=True) | Q(sort_title__exact="")
|
||||||
)
|
)
|
||||||
batch_size = 50000
|
batch_size = 1000
|
||||||
start = 0
|
start = 0
|
||||||
end = batch_size
|
end = batch_size
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue