diff options
author | Erik Johnston <erik@matrix.org> | 2017-05-04 14:59:28 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-05-04 14:59:28 +0100 |
commit | aa93cb9f442019dde1704a0c12b47e5b664e192a (patch) | |
tree | f9d365417adfa72324c74c73b47989f8044889da /synapse/storage/roommember.py | |
parent | Make get_joined_users faster (diff) | |
download | synapse-aa93cb9f442019dde1704a0c12b47e5b664e192a.tar.xz |
Add comment
Diffstat (limited to '')
-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 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, |