summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-29 14:53:59 +0000
committerErik Johnston <erik@matrix.org>2016-01-29 14:53:59 +0000
commitb5dbced9389d072d4bd15002c7ddffba9e54340e (patch)
tree775ef7fb5a750983ab2606e4e04270804e8e47ca
parentActually use cache (diff)
downloadsynapse-b5dbced9389d072d4bd15002c7ddffba9e54340e.tar.xz
Don't prefill account data
-rw-r--r--synapse/storage/__init__.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 957fff3c23..a6cb588563 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -132,15 +132,8 @@ class DataStore(RoomMemberStore, RoomStore,
         )
 
         account_max = self._account_data_id_gen.get_max_token(None)
-        account_cache_prefill, min_acc_val = self._get_cache_dict(
-            db_conn, "account_data",
-            entity_column="user_id",
-            stream_column="stream_id",
-            max_value=account_max,
-        )
         self._account_data_stream_cache = StreamChangeCache(
-            "AccountDataAndTagsChangeCache", min_acc_val,
-            prefilled_cache=account_cache_prefill,
+            "AccountDataAndTagsChangeCache", account_max,
         )
 
         super(DataStore, self).__init__(hs)