matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

add preAlloc method for reldata

Open badboynt1 opened this issue 1 year ago • 1 comments

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

badboynt1 avatar Oct 23 '24 06:10 badboynt1

跑一轮tpch,内存分配从4g降低到700mb

     .     4.20GB   4639:           err := shuffleBlocksByRange(c, relData, n, nodes)

     .   747.26MB   4639:           err := shuffleBlocksByRange(c, relData, n, nodes)

badboynt1 avatar Oct 23 '24 06:10 badboynt1