-
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
Chunk column reuse #28340
Comments
We have tidb/expression/builtin_vectorized.go Lines 36 to 73 in cc524af
The implemention use I'm not sure we need a true mempool for |
I guess it's for the OLAP query, and OLTP can't benefit from it. @Defined2014 |
I think maybe we can test the changes in the bank workload to verify it. @dbsid |
Enhancement
Currently, TiDB allocation cause too much burden to the Go GC, and slow down the program.
Prepare plan cache can help a lot to reduce the allocation, unfortunately we still can not take full advantage of it.
I reported this issue #26868 in the past.
@qw4990 and @Reminiscent is handling it and we wish to make it GA soon.
Prepare plan cache ranks top1 in reducing the allocation.
So after that, I find chunk allocation also accounts a lot.
If we can reuse the chunk column, it may reduce the object allocation.
Chunk columns are feasible for reuse, as you can see they are fix sized depending on the field type, and there is no complex structure in it, only slice of bytes:
tidb/util/chunk/column.go
Lines 63 to 84 in 955274f
The text was updated successfully, but these errors were encountered: