diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-14 15:34:02 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-14 15:34:02 +0100 |
commit | 7cd6a6f6cf03e5bfde99b839bdc67f8f5513cdc5 (patch) | |
tree | e3faa0100137549d729850cd08fdec3059b7a26e /synapse/storage/_base.py | |
parent | Turn off preemptive transactions (diff) | |
download | synapse-7cd6a6f6cf03e5bfde99b839bdc67f8f5513cdc5.tar.xz |
Awful idea for speeding up fetching of events
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index a8f8989e38..c20ff3a572 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -299,6 +299,10 @@ class SQLBaseStore(object): self._get_event_cache = Cache("*getEvent*", keylen=3, lru=True, max_entries=hs.config.event_cache_size) + self._event_fetch_lock = threading.Lock() + self._event_fetch_list = [] + self._event_fetch_ongoing = False + self.database_engine = hs.database_engine self._stream_id_gen = StreamIdGenerator() |