-
Notifications
You must be signed in to change notification settings - Fork 292
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
switch to commit to avoid write limitations #135
Conversation
# Conflicts: # spring-cloud-gcp-data-firestore/src/main/java/com/google/cloud/spring/data/firestore/FirestoreTemplate.java
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.
Small naming things, otherwise lgtm.
return ObservableReactiveUtil.streamingBidirectionalCall( | ||
this::openWriteStream, inputs, this::buildWriteRequest); | ||
return Flux.from(instances).bufferTimeout(this.writeBufferSize, this.writeBufferTimeout) | ||
.flatMap(ts -> { |
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 keep reading it as "timestamp". Rename to something more meaningful?
documentNames.bufferTimeout(this.writeBufferSize, this.writeBufferTimeout), | ||
this::buildDeleteRequest); | ||
return Flux.from(documentNames).bufferTimeout(this.writeBufferSize, this.writeBufferTimeout) | ||
.flatMap(ts -> { |
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.
Same, rename ts
to something -- it also turns into e
for Entity later in this block, so maybe something more consistent like "entity".
@@ -221,8 +222,8 @@ public void saveAllTest() { | |||
@Test | |||
public void saveAllBulkTest() { | |||
Flux<User> users = Flux.create(sink -> { | |||
for (int i = 0; i < 1000; i++) { | |||
sink.next(new User("testUser " + i, i)); | |||
for (int i = 0; i < 10000; i++) { |
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.
We can probably keep it at 1,000. 10K was useful for weeding out flakes, but likely not necessary for a regularly run test.
…gcp into firestore-write-commit
…rm/spring-cloud-gcp into firestore-write-commit
fixes #126