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

Expr: Collect BindingAnalysis in bulk rather than one at a time. #17613

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gianm
Copy link
Contributor

@gianm gianm commented Jan 9, 2025

Speeds up analysis of functions with large numbers of arguments, such as CASE statements with many branches. The prior code would call "with" for each argument on the accumulated analysis so far, which needlessly re-created the sets of variables over and over.

Speeds up analysis of functions with large numbers of arguments, such
as CASE statements with many branches. The prior code would call "with"
for each argument on the accumulated analysis so far, which needlessly
re-created the sets of variables over and over.
@gianm
Copy link
Contributor Author

gianm commented Jan 9, 2025

FYI, for a test query I was looking at involving a CASE with hundreds of branches, this sped up SQL planning from ~4s to 250ms.

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.

1 participant