This commit is contained in:
Their Name 2021-12-30 18:09:50 +00:00 committed by Your Name
parent d2955bf3d0
commit 0ed828ba1d
2 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,7 @@ from datetime import timedelta
from django.utils import timezone
BATCH_SIZE = 1000
BATCH_SIZE = 10000
class Command(BaseCommand):
@ -35,4 +35,4 @@ class Command(BaseCommand):
if items:
Indexer.instance().update_documents(documents=items)
while Indexer.get_stats()['isIndexing']:
sleep(0.1)
sleep(0.5)

View file

@ -13,3 +13,4 @@ psycopg2
requests
filetype
setproctitle
tqdm