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
Batch up replication requests to request the resyncing of remote users's devices. #14716
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2654d61
Build a set of who we are interested in first and foremost
reivilibre 9c4562c
Add log lines
reivilibre 227c953
Add async helpers
reivilibre 7d2261f
Limit query_devices_for_destination to 10 concurrent invocations
reivilibre 55f46d4
Add multi-user device resync in handler
reivilibre b4f9842
Add a replication servlet for multi-user device resync
reivilibre 369a97a
Use assertions to ensure we don't have our expectations broken
reivilibre 3c68aa4
Use the multi-user path even for single users
reivilibre 3d7451e
Split out the marking of failed
reivilibre 712144e
Batch up the DB writes when marking failures
reivilibre 4680778
Newsfile
reivilibre 55a4d7e
Typo fix
reivilibre 62e4ad7
Use the multi-user device resync to batch requests
reivilibre 8f04a34
Add a shortcut for empty batch requests
reivilibre 237dee9
Add docs about what None means
reivilibre 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
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
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.
Could likely replace this with raw SQL if we wanted.
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.
(I think I wanted to use this somewhere in the receipts or event push actions code, but can't seem to find where.)
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.
I'm on the fence about raw SQL vs just leaving it like this.
It'd be interesting to have support for pipelined statements (c.f. https://www.psycopg.org/psycopg3/docs/advanced/pipeline.html) in the future. I do generally like the readability of our helpers...