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

PR #96102 - sql: use in-memory session data to decide what to do in DISCARD #16142

Open
cockroach-teamcity opened this issue Jan 28, 2023 · 0 comments

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Jan 28, 2023

Exalate commented:

Related PR: cockroachdb/cockroach#96102
Commit: cockroachdb/cockroach@a814125


Release note (performance improvement): In 22.2, we introduced support for
DISCARD TEMP and made DISCARD ALL actually discard temp tables. This
implementation ran expensive logic to discover temp schemas rather than
consulting in-memory data structures. As a result, DISCARD ALL, which
is issued regularly by connection pools, became an expensive operation
when it should be cheap. This problem is now resolved.

Jira Issue: DOC-6699

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants