Skip to content

Commit

Permalink
increase block cache size for stakedb
Browse files Browse the repository at this point in the history
  • Loading branch information
ukane-philemon committed Dec 26, 2022
1 parent 7e3a521 commit 7fd8e63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stakedb/ticketpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func dbVersion(db *badger.DB) (uint32, error) {
func badgerOptions(badgerDbPath string) badger.Options {
opts := badger.DefaultOptions(badgerDbPath)
opts.DetectConflicts = false
opts.BlockCacheSize = 300 << 20
opts.CompactL0OnClose = true
opts.MetricsEnabled = false
opts.Logger = &badgerLogger{log}
Expand Down

0 comments on commit 7fd8e63

Please sign in to comment.