Skip to content

DOC-614 | Added readOwnWrites option for UPSERT operations #409

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

Merged
merged 4 commits into from
Jan 8, 2024

Conversation

nerpaula
Copy link
Contributor

@nerpaula nerpaula commented Jan 4, 2024

Description

Added readOwnWrites option for UPSERT operations.

Upstream PRs

Copy link
Contributor

Deploy Preview Available Via
https://deploy-preview-409--docs-hugo.netlify.app

@cla-bot cla-bot bot added the cla-signed label Jan 4, 2024
@nerpaula nerpaula self-assigned this Jan 4, 2024
@nerpaula nerpaula added this to the 3.12 milestone Jan 4, 2024
@nerpaula nerpaula requested a review from Simran-B January 4, 2024 01:46

When the option is set to `false`, an `UPSERT` operation processes its inputs
in batches. A batch has normally 1000 inputs, so it can lead to a faster execution.
However, when using batches, the `UPSERT` operation cannot observe its own writes.
Copy link
Contributor

Choose a reason for hiding this comment

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

for the most part? If the modifications happen to be in two different batches, then I suppose they are observed, but this is of course highly unreliable. Maybe insert a "basically"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How would you rephrase it?

nerpaula and others added 2 commits January 4, 2024 21:09
@nerpaula nerpaula requested a review from Simran-B January 5, 2024 07:18
Co-authored-by: Simran <Simran-B@users.noreply.github.com>
@nerpaula nerpaula requested a review from Simran-B January 6, 2024 06:59
@nerpaula nerpaula merged commit 78aff0f into main Jan 8, 2024
@nerpaula nerpaula deleted the read-own-writes-upsert branch January 8, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants