mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-13 08:42:11 -04:00
Rotate notifications more frequently (#13096)
This commit is contained in:
parent
5099b5ecc7
commit
5ef05c70c3
2 changed files with 2 additions and 1 deletions
1
changelog.d/13096.misc
Normal file
1
changelog.d/13096.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Reduce DB usage of `/sync` when a large number of unread messages have recently been sent in a room.
|
|
@ -148,7 +148,7 @@ class EventPushActionsWorkerStore(ReceiptsWorkerStore, EventsWorkerStore, SQLBas
|
||||||
self._doing_notif_rotation = False
|
self._doing_notif_rotation = False
|
||||||
if hs.config.worker.run_background_tasks:
|
if hs.config.worker.run_background_tasks:
|
||||||
self._rotate_notif_loop = self._clock.looping_call(
|
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(
|
self.db_pool.updates.register_background_index_update(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue