Skip to content

Commit

Permalink
less cache size to reduce memory (#4582)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin authored Nov 4, 2021
1 parent 49c7e7c commit 7cdcb44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/util/blockstoreutil/badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ func Open(opts Options) (*BadgerBlockstore, error) {
if err != nil {
return nil, fmt.Errorf("failed to open badger blockstore: %w", err)
}
cache := NewLruCache(1000 * 10000)

cache := NewLruCache(10 * 10000)
bs := &BadgerBlockstore{
DB: db,
keyTransform: keyTransform,
Expand Down

0 comments on commit 7cdcb44

Please sign in to comment.