-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework schema and queries for gateway envelopes (#145)
Now that we have [vector clock cursors](xmtp/proto#201), removing the need for a gateway sequence ID, there are some schema changes that are worth going over with a keen eye: - Remove the `sequence_id` on `gateway_envelopes` and replace it with a timestamp - The timestamp needs to match the insertion order *per-originator*, but does not need to match insertion order globally. - Updating the `SelectGatewayEnvelopes` query to be vector clock aware (only returning envelopes greater than the vector clock cursor) Because the any changes in this PR affect the downstream work, I'm splitting the work to make the Go code vector-clock aware into a separate PR. Instead, I've left TODO's in the code that I will replace in the future PR. #132
- Loading branch information
1 parent
a8d42a3
commit 5a67cd9
Showing
7 changed files
with
72 additions
and
65 deletions.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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