summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@arasphere.net>2018-09-12 00:50:39 +0100
committerGitHub <noreply@github.com>2018-09-12 00:50:39 +0100
commitb041115415191f8353177f7e0c1beec81be0c921 (patch)
treec473c520965ca49bb984eaa5ceaf9688a23471f5 /synapse/storage/events.py
parentMerge pull request #3834 from mvgorcum/develop (diff)
downloadsynapse-b041115415191f8353177f7e0c1beec81be0c921.tar.xz
Speed up lazy loading (#3827)
* speed up room summaries by pulling their data from room_memberships rather than room state
* disable LL for incr syncs, and log incr sync stats  (#3840)
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 8bf87f38f7..30ff87a4c4 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -930,6 +930,10 @@ class EventsStore(EventFederationStore, EventsWorkerStore, BackgroundUpdateStore
                 )
 
                 self._invalidate_cache_and_stream(
+                    txn, self.get_room_summary, (room_id,)
+                )
+
+                self._invalidate_cache_and_stream(
                     txn, self.get_current_state_ids, (room_id,)
                 )