Skip to content
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

fix(firestore): Replace usage of transform with update_transform in batch write #7864

Merged
merged 6 commits into from May 16, 2023

Conversation

bhshkh
Copy link
Contributor

@bhshkh bhshkh commented May 2, 2023

Replacing all usages of transforms with update_transforms will enable writes with field transforms to be performed in a single write.

This is important for BulkWriter to ensure that writes with field transforms do not have to be split into separate batches.

This will resolve #7636

@bhshkh bhshkh requested review from a team as code owners May 2, 2023 00:11
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: firestore Issues related to the Firestore API. labels May 2, 2023
@bhshkh bhshkh requested a review from enocom May 2, 2023 00:15
@@ -1721,6 +1721,19 @@ func TestIntegration_ColGroupRefPartitionsLarge(t *testing.T) {
t.Errorf("Unexpected number of documents across partitions: got %d, want %d", got, want)
}
}
func TestIntegration_BulkWriter_Set(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little comment above this test to explain what it's doing might be nice here.

@kolea2 kolea2 enabled auto-merge (squash) May 16, 2023 18:45
@kolea2 kolea2 merged commit 949e4d8 into googleapis:main May 16, 2023
8 checks passed
@bhshkh bhshkh deleted the issue-7636 branch May 19, 2023 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the Firestore API. size: xl Pull request size is extra large.
Projects
None yet
3 participants