summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-04 14:59:28 +0100
committerErik Johnston <erik@matrix.org>2017-05-04 14:59:28 +0100
commitaa93cb9f442019dde1704a0c12b47e5b664e192a (patch)
treef9d365417adfa72324c74c73b47989f8044889da /synapse/storage/roommember.py
parentMake get_joined_users faster (diff)
downloadsynapse-aa93cb9f442019dde1704a0c12b47e5b664e192a.tar.xz
Add comment
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 46efdfb3e2..dcb95b924a 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -417,6 +417,9 @@ class RoomMemberStore(SQLBaseStore):
             if key[0] == EventTypes.Member
         ]
 
+        # We check if we have any of the member event ids in the event cache
+        # before we ask the DB
+
         event_map = self._get_events_from_cache(
             member_event_ids,
             allow_rejected=False,