We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently PhysicalTopN#containVirtualColumn performs nested loop matching given columns with those of ByItems.
PhysicalTopN#containVirtualColumn
ByItems
We can establish map[int64]*expression.Column at the beginning of the method keyed by column Ids of tCols.
map[int64]*expression.Column
tCols
This way, the loop over p.ByItems can utilize the map to perform O(1) lookup.
p.ByItems
map
The text was updated successfully, but these errors were encountered:
Good Catch! Have you interest to improve it.
Sorry, something went wrong.
planner: speed up PhysicalTopN#containVirtualColumn (#46812)
262327f
close #46809
hawkingrei
Successfully merging a pull request may close this issue.
Enhancement
Currently
PhysicalTopN#containVirtualColumn
performs nested loop matching given columns with those ofByItems
.We can establish
map[int64]*expression.Column
at the beginning of the method keyed by column Ids oftCols
.This way, the loop over
p.ByItems
can utilize themap
to perform O(1) lookup.The text was updated successfully, but these errors were encountered: