mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Expand comment
This commit is contained in:
parent
105e7f6ed3
commit
df3a5db629
@ -678,6 +678,11 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
|||||||
# to see if any have subsequently been updated. This is done so that
|
# 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
|
# we can use a partial index on `forgotten = 1` on the assumption
|
||||||
# that few users will actually forget many rooms.
|
# 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 = """
|
sql = """
|
||||||
SELECT room_id, (
|
SELECT room_id, (
|
||||||
SELECT count(*) FROM room_memberships
|
SELECT count(*) FROM room_memberships
|
||||||
|
Loading…
Reference in New Issue
Block a user