-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Use new device_lists_changes_in_room
table for fetching device lists in /sync
#12388
Comments
Is this ready for testing? I could merge the PR on a fork and try it out. I have an account which can't log in to new devices... |
Sorry I'm having some trouble with building the docker image so I won't be able to test this soon... |
If you're running |
Is this a hidden config in the release and also in the tag? I'm not using the official releases, I have a fork and I merged... |
Oh sorry, I'm wrong, its not in 1.56. I'm getting the timeline wrong. It will be in 1.57 and then enabled by default in 1.58. The commit you need is 5c9e39e, which is in the tag v1.57.0rc1. |
Hey @erikjohnston I managed to build a docker image and test but it seems like I still can't log in... Maybe I need to higher the cache factor? I'm using the defaults... That's what @squahtx suggested here: #12429 (comment) Here are the logs: I found:
in line 3425 after about an hour and so since clicking the login. |
I think this was fixed by #12365. @erikjohnston: if there is still outstanding work here, please can you clarify what it is. |
#12365 only enabled using that table while registering a new device. This issue is about using the new table in a couple of other places where we do similar things. |
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.The text was updated successfully, but these errors were encountered: