-
Notifications
You must be signed in to change notification settings - Fork 916
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
Reduce memory usage when indexing Hypercore TAM #7793
Reduce memory usage when indexing Hypercore TAM #7793
Conversation
When building indexes over a table using Hypercore TAM, some memory for decompressing data wasn't released until the index build completes. This change optimizes the memory usage during index builds to release memory after every compressed batch has been processed.
memset(slot->tts_isnull, true, sizeof(bool) * slot->tts_tupleDescriptor->natts); | ||
MemSet(slot->tts_isnull, true, sizeof(bool) * slot->tts_tupleDescriptor->natts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: PG uses memset
as often as MemSet
. I think you can stick to memset
since most compilers recognize it and can optimize it.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7793 +/- ##
==========================================
+ Coverage 80.06% 81.90% +1.83%
==========================================
Files 190 247 +57
Lines 37181 45459 +8278
Branches 9450 11368 +1918
==========================================
+ Hits 29770 37233 +7463
- Misses 2997 3749 +752
- Partials 4414 4477 +63 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@gayyappan, @antekresic: please review this pull request.
|
When building indexes over a table using Hypercore TAM, some memory for decompressing data wasn't released until the index build completes. This change optimizes the memory usage during index builds to release memory after every compressed batch has been processed.
Disable-check: force-changelog-file