forked from StarRocks/starrocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: reduce the memory usage of segment (StarRocks#896)
1. Does not keep `SegmentFooterPB` in memory anymore 2. Save index meta and index reader as a union in `ColumnReader` 3. Reorder class memory fields to reduce class size 4. Avoid create unused fields In my test environment (with 1 BE, 10,000 replicas, 300 columns per replica), memory consumption dropped from 15GB to 7.2GB
- Loading branch information
Showing
7 changed files
with
277 additions
and
234 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.