-
Notifications
You must be signed in to change notification settings - Fork 615
Handle large write batches #215
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
Conversation
Unfortunately, SQLiteStatement.executeForBlobFileDescriptor is unreliable, sometimes returning null even when the row exists and the blob has a value (!!).
37b5f8a
to
fdb1ceb
Compare
While testing the approach with |
/retest |
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.
Sorry for the delay. This looks good except for some minor comment nits. Thanks for tracking all of this down!
Don't forget to port to the other platforms. 😛
firebase-firestore/src/androidTest/java/com/google/firebase/firestore/WriteBatchTest.java
Show resolved
Hide resolved
firebase-firestore/src/androidTest/java/com/google/firebase/firestore/WriteBatchTest.java
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/local/SQLiteMutationQueue.java
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/local/SQLiteMutationQueue.java
Outdated
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/local/SQLiteMutationQueue.java
Outdated
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/local/SQLiteMutationQueue.java
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/local/SQLiteMutationQueue.java
Show resolved
Hide resolved
@wilhuff: The following test 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. |
This addresses #208.
While this works, I'm not yet sure this approach performs well enough to merge as-is. For example, we could make the two methods I changed to use direct load to use the inline method that others use.
I've sent this out to get feedback on this before I invest time in benchmarking.