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

opt: autocommit when RETURNING expressions are leak-proof #70200

Merged

Conversation

mgartner
Copy link
Collaborator

Previously, mutations under a Project could only be auto-committed when
the Project had only passthrough columns and no projection expressions.
Now, a mutation under a Project can auto-commit if all the projections
are leak-proof.

Release note (performance improvement): Mutation statements with a
RETURNING clause that are not inside an explicit transaction are faster
in some cases.

Previously, mutations under a Project could only be auto-committed when
the Project had only passthrough columns and no projection expressions.
Now, a mutation under a Project can auto-commit if all the projections
are leak-proof.

Release note (performance improvement): Mutation statements with a
RETURNING clause that are not inside an explicit transaction are faster
in some cases.
@mgartner mgartner requested review from RaduBerinde and a team September 14, 2021 14:29
@mgartner mgartner requested a review from a team as a code owner September 14, 2021 14:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm: Thanks!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 14, 2021

Build succeeded:

@craig craig bot merged commit a79a082 into cockroachdb:master Sep 14, 2021
@mgartner mgartner deleted the autocommit-leak-proof-projections branch September 15, 2021 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants