Skip to content

Commit ae8e9fc

Browse files
committed
fix? smaller consumer prefetch
1 parent 50d34f6 commit ae8e9fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/search/daemon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def stop_daemonthreads(self, *, wait=False):
7979

8080

8181
class KombuMessageConsumer(ConsumerMixin):
82-
PREFETCH_COUNT = 7500
82+
PREFETCH_COUNT = settings.ELASTICSEARCH['CHUNK_SIZE']
8383

8484
should_stop: bool # (from ConsumerMixin)
8585

@@ -129,7 +129,7 @@ def consume(self, *args, **kwargs):
129129

130130

131131
class IndexerDaemon:
132-
MAX_LOCAL_QUEUE_SIZE = 5000
132+
MAX_LOCAL_QUEUE_SIZE = settings.ELASTICSEARCH['CHUNK_SIZE']
133133

134134
def __init__(self, index_strategy, *, stop_event=None, daemonthread_context=None):
135135
self.stop_event = (

0 commit comments

Comments
 (0)