diff options
author | Sean <squahtx@users.noreply.github.com> | 2021-09-03 17:16:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-03 17:16:56 +0100 |
commit | 924276f4821c71b788378e1ed6a0bd384771844f (patch) | |
tree | 3993365bb6f4935e4467cba382d805c1e4fca90e /scripts | |
parent | Use `execute_values` more in PostgreSQL (#10754) (diff) | |
download | synapse-924276f4821c71b788378e1ed6a0bd384771844f.tar.xz |
Add a partial index to `presence_stream` to speed up startups (#10748)
Signed-off-by: Sean Quah <seanq@element.io>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/synapse_port_db | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/synapse_port_db b/scripts/synapse_port_db index 2bbaf5557d..fa6ac6d93a 100755 --- a/scripts/synapse_port_db +++ b/scripts/synapse_port_db @@ -46,6 +46,7 @@ from synapse.storage.databases.main.events_bg_updates import ( from synapse.storage.databases.main.media_repository import ( MediaRepositoryBackgroundUpdateStore, ) +from synapse.storage.databases.main.presence import PresenceBackgroundUpdateStore from synapse.storage.databases.main.pusher import PusherWorkerStore from synapse.storage.databases.main.registration import ( RegistrationBackgroundUpdateStore, @@ -179,6 +180,7 @@ class Store( EndToEndKeyBackgroundStore, StatsStore, PusherWorkerStore, + PresenceBackgroundUpdateStore, ): def execute(self, f, *args, **kwargs): return self.db_pool.runInteraction(f.__name__, f, *args, **kwargs) |