commit 77f991d801bdc6d1059f61892e73205618c0dcf3
parent 0657f5703ef85ab8672b4a800d12ffb8df713d61
Author: Natalie Pendragon <natpen@natpen.net>
Date: Sun, 15 Nov 2020 08:30:29 -0500
Bump rolling writer's batch size back up to 5000
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gus/lib/search.py b/gus/lib/search.py
@@ -77,7 +77,7 @@ class Index:
def _rolling_writer(self):
self._write_counter += 1
- if self._writer and self._write_counter % 10 == 0:
+ if self._writer and self._write_counter % 5000 == 0:
logging.debug("Committing index.")
self._writer.commit()
self._writer = None