-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Optimize performance for UnionScanExec
and MemBuffer
#43249
Comments
The inefficency comes from too parts:
|
Hey @lcwangchao do you have more elaboration in "Maybe we can implementMemBuffer more efficient."? The flamegraph shows that time spent in memdb is quite little. Did you mean codec-related work? |
After my previous optimization, much of that had been improved. |
Enhancement
The UnionScan is not very efficient, for example:
Open
instead ofNext
. It will take more time when the SQL has aLIMIT
becauseOpen
will not considerate it.MemBuffer
more efficient.The union scan's performance will affect the performance of temporary table, cached table and queries in a txn with a lot of uncommitted rows.
The text was updated successfully, but these errors were encountered: