diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-02-11 16:18:21 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-02-11 16:18:21 +0000 |
commit | 7f47ba7383302fdbdaa3a10abef00d3710c77fce (patch) | |
tree | cf1a84378a59cc39f241788aec1fb099ff695993 /synapse/storage | |
parent | Cache the result of a get_rooms_for_user query, to make user_rooms_intersect(... (diff) | |
download | synapse-7f47ba7383302fdbdaa3a10abef00d3710c77fce.tar.xz |
Added another TODO note
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/roommember.py | 3 |
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) |