diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-15 14:27:15 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-15 14:28:13 +0100 |
commit | cb3edec6af55efb126f5e7ee66c4d895ef35a66e (patch) | |
tree | a80740335d559f06a7568aa633b7ac78ac2e0e00 /synapse/replication/slave/storage/events.py | |
parent | Add cache to get_forward_extremeties_for_room (diff) | |
download | synapse-cb3edec6af55efb126f5e7ee66c4d895ef35a66e.tar.xz |
Use stream_change cache to make get_forward_extremeties_for_room cache more effective
Diffstat (limited to 'synapse/replication/slave/storage/events.py')
-rw-r--r-- | synapse/replication/slave/storage/events.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/replication/slave/storage/events.py b/synapse/replication/slave/storage/events.py index 842ced02d6..cc32c66792 100644 --- a/synapse/replication/slave/storage/events.py +++ b/synapse/replication/slave/storage/events.py @@ -173,7 +173,10 @@ class SlavedEventStore(BaseSlavedStore): get_room_max_stream_ordering = DataStore.get_room_max_stream_ordering.__func__ get_forward_extremeties_for_room = ( - EventFederationStore.__dict__["get_forward_extremeties_for_room"] + DataStore.get_forward_extremeties_for_room.__func__ + ) + _get_forward_extremeties_for_room = ( + EventFederationStore.__dict__["_get_forward_extremeties_for_room"] ) def stream_positions(self): |