summary refs log tree commit diff
path: root/synapse/storage/stream.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-20 16:02:47 +0000
committerErik Johnston <erik@matrix.org>2015-03-20 16:02:47 +0000
commit9517f4da4dfd8bef22a0f6f19a5593617c769a44 (patch)
tree9896aae63afd7e60694c04248a4e1dc75b60ca8f /synapse/storage/stream.py
parentGive sensible names for '_simple_...' transactions (diff)
parentAdd the tiniest of tiny one-element caches to get_room_events_max_id() as it'... (diff)
downloadsynapse-9517f4da4dfd8bef22a0f6f19a5593617c769a44.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into store_rearrangement
Diffstat (limited to 'synapse/storage/stream.py')
-rw-r--r--synapse/storage/stream.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py
index df234efdff..66f307e640 100644
--- a/synapse/storage/stream.py
+++ b/synapse/storage/stream.py
@@ -35,7 +35,7 @@ what sort order was used:
 
 from twisted.internet import defer
 
-from ._base import SQLBaseStore
+from ._base import SQLBaseStore, cached
 from synapse.api.constants import EventTypes
 from synapse.api.errors import SynapseError
 from synapse.util.logutils import log_function
@@ -413,6 +413,7 @@ class StreamStore(SQLBaseStore):
             "get_recent_events_for_room", get_recent_events_for_room_txn
         )
 
+    @cached(num_args=0)
     def get_room_events_max_id(self):
         return self.runInteraction(
             "get_room_events_max_id",