Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Expand comment
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jul 29, 2019
1 parent 105e7f6 commit df3a5db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synapse/storage/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ def _get_forgotten_rooms_for_user_txn(txn):
# 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
Expand Down

0 comments on commit df3a5db

Please sign in to comment.