This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Use new device_lists_changes_in_room
table for fetching device lists in /sync
#12388
Closed
Description
We added a table that tracks device list changes in a room in #12321. We can use this in /sync
(and /keys/changes
) to more efficiently calculate the device list changes without having to calculate the full set of users who share a room with the requester.
c.f.
synapse/synapse/handlers/sync.py
Lines 1313 to 1329 in 573cd0f
and
synapse/synapse/handlers/device.py
Lines 139 to 143 in 573cd0f
The tricky thing is that since the table has been added recently we need to a) only use it once our minimum schema is 69
and b) only for device list stream IDs that have happened after a.