summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/13096.misc1
-rw-r--r--synapse/storage/databases/main/event_push_actions.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/13096.misc b/changelog.d/13096.misc
new file mode 100644

index 0000000000..3bb51962e7 --- /dev/null +++ b/changelog.d/13096.misc
@@ -0,0 +1 @@ +Reduce DB usage of `/sync` when a large number of unread messages have recently been sent in a room. diff --git a/synapse/storage/databases/main/event_push_actions.py b/synapse/storage/databases/main/event_push_actions.py
index ae705889a5..10a7962382 100644 --- a/synapse/storage/databases/main/event_push_actions.py +++ b/synapse/storage/databases/main/event_push_actions.py
@@ -148,7 +148,7 @@ class EventPushActionsWorkerStore(ReceiptsWorkerStore, EventsWorkerStore, SQLBas self._doing_notif_rotation = False if hs.config.worker.run_background_tasks: self._rotate_notif_loop = self._clock.looping_call( - self._rotate_notifs, 30 * 60 * 1000 + self._rotate_notifs, 30 * 1000 ) self.db_pool.updates.register_background_index_update(