diff options
author | Matthew Hodgson <matthew@arasphere.net> | 2018-09-12 00:50:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 00:50:39 +0100 |
commit | b041115415191f8353177f7e0c1beec81be0c921 (patch) | |
tree | c473c520965ca49bb984eaa5ceaf9688a23471f5 /synapse/storage/events.py | |
parent | Merge pull request #3834 from mvgorcum/develop (diff) | |
download | synapse-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.py | 4 |
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,) ) |