Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 5ef05c7

Browse files
authored
Rotate notifications more frequently (#13096)
1 parent 5099b5e commit 5ef05c7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/13096.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Reduce DB usage of `/sync` when a large number of unread messages have recently been sent in a room.

synapse/storage/databases/main/event_push_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __init__(
148148
self._doing_notif_rotation = False
149149
if hs.config.worker.run_background_tasks:
150150
self._rotate_notif_loop = self._clock.looping_call(
151-
self._rotate_notifs, 30 * 60 * 1000
151+
self._rotate_notifs, 30 * 1000
152152
)
153153

154154
self.db_pool.updates.register_background_index_update(

0 commit comments

Comments
 (0)