summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-02-11 16:18:21 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-02-11 16:18:21 +0000
commit7f47ba7383302fdbdaa3a10abef00d3710c77fce (patch)
treecf1a84378a59cc39f241788aec1fb099ff695993 /synapse/storage/roommember.py
parentCache the result of a get_rooms_for_user query, to make user_rooms_intersect(... (diff)
downloadsynapse-7f47ba7383302fdbdaa3a10abef00d3710c77fce.tar.xz
Added another TODO note
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r--synapse/storage/roommember.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index e05465bc13..779f9ce544 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -264,6 +264,9 @@ class RoomMemberStore(SQLBaseStore):
             user_id, membership_list=[Membership.JOIN],
         )
 
+        # TODO(paul): Consider applying a maximum size; just evict things at
+        #   random, or consider LRU?
+
         self._user_rooms_cache[user_id] = rooms
         defer.returnValue(rooms)