-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store discardMap in vlog file when it's too large (#858)
The discardMap stores the discard status for all value log files in the db and this could get too large when there are many value log files in badger. When there are many vlog files, the size of discard map could be more than what we can keep in the LSM tree. With this commit, we insert the discardMap into badger using the write channel which would automatically put the discard map into the value log file and use it's pointer in the LSM tree if the LSM tree cannot hold it.
- Loading branch information
Ibrahim Jarif
authored
Jun 18, 2019
1 parent
853a823
commit fa0679c
Showing
4 changed files
with
94 additions
and
15 deletions.
There are no files selected for viewing
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
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