diff options
author | Erik Johnston <erik@matrix.org> | 2019-07-29 16:40:25 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-07-29 16:40:25 +0100 |
commit | df3a5db629daa384cdf291f5ecbb0ff1721c80df (patch) | |
tree | 5df099ee16b578651a605563649e40a54e359aae /synapse | |
parent | Remove lost comment (diff) | |
download | synapse-df3a5db629daa384cdf291f5ecbb0ff1721c80df.tar.xz |
Expand comment
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/roommember.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index bfb834ccca..59ea7277fe 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -678,6 +678,11 @@ class RoomMemberWorkerStore(EventsWorkerStore): # to see if any have subsequently been updated. This is done so that # we can use a partial index on `forgotten = 1` on the assumption # that few users will actually forget many rooms. + # + # Note that a room is considered "forgotten" if *all* membership + # events for that user and room have the forgotten field set (as + # when a user forgets a room we update all rows for that user and + # room, not just the current one). sql = """ SELECT room_id, ( SELECT count(*) FROM room_memberships |