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

[planbuilder] Skip post-aggregate projection when there are no aliases in target scope #2333

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

max-hoffman
Copy link
Contributor

@max-hoffman max-hoffman commented Feb 17, 2024

re: dolthub/dolt#6982

This takes the last big chunk of CPU pressure off of TPC-C execution, which is mostly disk limited now:

image

sql/memo/memo.go Outdated
@@ -283,6 +283,9 @@ func (m *Memo) MemoizeMergeJoin(grp, left, right *ExprGroup, lIdx, rIdx *IndexSc
}

func (m *Memo) MemoizeProject(grp, child *ExprGroup, projections []sql.Expression) *ExprGroup {
if len(projections) == 0 {
print("")
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this.

@max-hoffman max-hoffman merged commit 6375cc7 into main Feb 20, 2024
7 checks passed
@max-hoffman max-hoffman deleted the max/prune-more-projections branch February 20, 2024 02:22
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.

2 participants