-
Notifications
You must be signed in to change notification settings - Fork 615
Schema migration that drops held write acks #33
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
Schema migration that drops held write acks #33
Conversation
01cd87e
to
9a5f24b
Compare
9a5f24b
to
334714d
Compare
|
||
SQLiteStatement indexDeleter = | ||
db.compileStatement( | ||
"DELETE FROM document_mutations WHERE uid = ? AND path = ? AND batch_id = ?"); |
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.
Do we need the path? Don't we want to delete all rows from a batch? Could we do DELETE FROM document_mutations WHERE uid = ? AND batch_id = ?
and then maybe not even need the serializer?
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.
Whaaaaaa. Nice. I didn't even think about that.
@schmidt-sebastian: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
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. Do we need the serializer for the webclient?
We do need it since we would have to do an index-skip-scan. The data is encoded as user-path-batchId. |
Port of firebase/firebase-js-sdk#1149