-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
History response pagination using sender-generated timestamp #657
Conversation
Jenkins BuildsClick to see older builds (36)
|
@jakubgs the Jenkins log does not give much info to be able to track the failure, what are your thoughts? Thanks! |
@jakubgs I restarted the runs and errors are gone! |
) WITHOUT ROWID; | ||
|
||
|
||
INSERT INTO Message SELECT id, contentTopic, pubsubTopic, payload, version, senderTimestamp FROM Message_backup; |
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.
Wondering for interest's sake what the benefit is of doing it this way (creating a new table based on the previous) vs just deleting the column (ALTER TABLE...DROP COLUMN
)? This will still involve making a backup copy, of course.
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.
Good question, unfortunately, SQlite does not support the ALTER TABLE
command
Updated the PR: @oskarth @jm-clius |
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.
LGTM
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.
Nice!
Closes vacp2p/rfc#219 and partial progress towards vacp2p/rfc#406
Paging based on sender timestamp is more conventional, and in this PR the role of receiver timestamp in the pagination is entirely replaced by the sender timestamp.