summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2021-06-29 20:56:46 +0100
committerRichard van der Hoff <richard@matrix.org>2021-06-29 20:56:46 +0100
commitcfddd43bfb8e2f00e5eed1a934ad8b7467052d22 (patch)
tree4fc5c325cd985b1d3c6e3904862802f9058aa051
parentMerge branch 'release-v1.37' into matrix-org-hotfixes (diff)
downloadsynapse-cfddd43bfb8e2f00e5eed1a934ad8b7467052d22.tar.xz
bump background update rate
-rw-r--r--synapse/storage/background_updates.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/storage/background_updates.py b/synapse/storage/background_updates.py

index 142787fdfd..c1f4d99e19 100644 --- a/synapse/storage/background_updates.py +++ b/synapse/storage/background_updates.py
@@ -84,8 +84,9 @@ class BackgroundUpdater: MINIMUM_BACKGROUND_BATCH_SIZE = 100 DEFAULT_BACKGROUND_BATCH_SIZE = 100 - BACKGROUND_UPDATE_INTERVAL_MS = 1000 - BACKGROUND_UPDATE_DURATION_MS = 100 + # temporarily increased to make stream_ordering go faster: rv 2021/06/29 + BACKGROUND_UPDATE_INTERVAL_MS = 10 + BACKGROUND_UPDATE_DURATION_MS = 1000 def __init__(self, hs: "HomeServer", database: "DatabasePool"): self._clock = hs.get_clock()