This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Track device list updates per room. #12321
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b5a9c6b
Operate on room IDs
erikjohnston 6fa639e
Don't copy the hosts list
erikjohnston ecf98b9
Write to a new `device_lists_changes_in_room` table.
erikjohnston c5dd83f
Convert to doing everything in a transaction
erikjohnston bb44214
Track if we've calculated remote hosts
erikjohnston 98fceb3
We actually don't want stream_id to be unique
erikjohnston eda0e64
Handle room pokes that haven't been converted to outbound pokes
erikjohnston c7790ab
Deduplicate outbound pokes
erikjohnston 6e9b31a
Add a config option that allows using new code path
erikjohnston 3b2ab93
Add tests for new code path
erikjohnston f8af30f
Newsfile
erikjohnston 7266580
Fix tests
erikjohnston f24b70b
Merge remote-tracking branch 'origin/develop' into erikj/device_list_…
erikjohnston 8bd8ee2
Update synapse/storage/schema/main/delta/69/01device_list_oubound_by_…
erikjohnston 56f0913
Update synapse/storage/schema/main/delta/69/01device_list_oubound_by_…
erikjohnston 90d41a0
Encode opentracing context just once.
erikjohnston c470a12
Rename var
erikjohnston d030062
Remove `if not room_ids` check.
erikjohnston ad5d46b
Add unique index
erikjohnston d5031b0
Note lack of foreign key constraint
erikjohnston 28dacc8
Add comment about stream_id duplicates
erikjohnston f48527f
Update synapse_port_db
erikjohnston bd45f19
Inequality the wrong way round
erikjohnston dee8f55
Add note about 'num_stream_ids'
erikjohnston 3574541
Merge remote-tracking branch 'origin/develop' into erikj/device_list_…
erikjohnston cf04f1a
Use different stream IDs for device_list_outbound_pokes
erikjohnston 89e10d7
Correctly order device list stream updates
erikjohnston e54d2d4
Wake up replication after adding otubound pokes
erikjohnston 7d79dee
Apply suggestions from code review
erikjohnston b61c5c7
Remove get_users_who_share_room_with_user stub in test
erikjohnston File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add ground work for speeding up device list updates for users in large numbers of rooms. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FederationSenderDevicesTestCases still stubs this out. Is that still necessary?