matrixone
matrixone copied to clipboard
add preAlloc method for reldata
What type of PR is this?
- [ ] API-change
- [ ] BUG
- [x] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring
Which issue(s) this PR fixes:
issue #19054
What this PR does / why we need it:
add preAlloc method for reldata fix a bug that cause count(*) optimization don't work
跑一轮tpch,内存分配从4g降低到700mb
. 4.20GB 4639: err := shuffleBlocksByRange(c, relData, n, nodes)
. 747.26MB 4639: err := shuffleBlocksByRange(c, relData, n, nodes)