forked-synapse/synapse/storage
Erik Johnston be4a16ff44
Sliding Sync: Track whether we have sent rooms down to clients (#17447)
The basic idea is that we introduce a new token for a sliding sync
connection, which stores the mapping of room to room "status" (i.e. have
we sent the room down?). This token allows us to handle duplicate
requests properly. In future it can be used to store more
"per-connection" information safely.

In future this should be migrated into the DB, so its important that we
try to reduce the number of syncs where we need to update the
per-connection information. In this PoC this only happens when we: a)
send down a set of room for the first time, or b) we have previously
sent down a room and there are updates but we are not sending the room
down the sync (due to not falling in a list range)

Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
2024-07-29 22:45:48 +01:00
..
controllers Add rooms.required_state to Sliding Sync /sync (#17342) 2024-07-04 12:25:36 -05:00
databases Sliding Sync: Track whether we have sent rooms down to clients (#17447) 2024-07-29 22:45:48 +01:00
engines Change allow_unsafe_locale to also apply on new databases (#17238) 2024-05-29 12:04:13 +01:00
schema Prepare for authenticated media freeze (#17433) 2024-07-22 10:33:17 +01:00
util Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:39:49 +01:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
_base.py Add a cache on get_rooms_for_local_user_where_membership_is (#17460) 2024-07-19 16:19:15 +01:00
background_updates.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
database.py Move towards using MultiWriterIdGenerator everywhere (#17226) 2024-05-29 12:19:10 +00:00
keys.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
prepare_database.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
push_rule.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
roommember.py Use fully-qualified PersistedEventPosition when returning RoomsForUser (#17265) 2024-06-04 12:58:03 -05:00
types.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00