summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorErik Johnston <erikj@matrix.org>2023-11-16 15:19:35 +0000
committerGitHub <noreply@github.com>2023-11-16 15:19:35 +0000
commit3e8531d3baf205733693f9ae8b43aa0b4c82b744 (patch)
treeb4a153c96b8a2dbea1e7dfa66fa9026afa3e9dad /synapse/util
parentSpeed up persisting large number of outliers (#16649) (diff)
downloadsynapse-3e8531d3baf205733693f9ae8b43aa0b4c82b744.tar.xz
Speed up deleting device messages (#16643)
Keeping track of a lower bound of stream ID where we've deleted everything below makes the queries much faster. Otherwise, every time we scan for rows to delete we'd re-scan across all the rows that have previously deleted (until the next table VACUUM).
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/task_scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/task_scheduler.py b/synapse/util/task_scheduler.py
index caf13b3474..29c561e555 100644
--- a/synapse/util/task_scheduler.py
+++ b/synapse/util/task_scheduler.py
@@ -193,7 +193,7 @@ class TaskScheduler:
         result: Optional[JsonMapping] = None,
         error: Optional[str] = None,
     ) -> bool:
-        """Update some task associated values. This is exposed publically so it can
+        """Update some task associated values. This is exposed publicly so it can
         be used inside task functions, mainly to update the result and be able to
         resume a task at a specific step after a restart of synapse.