Skip to content

Commit

Permalink
increase cache and handles for leveldb (#4019)
Browse files Browse the repository at this point in the history
* increase cache for leveldb

* 256 for cache
  • Loading branch information
rlan35 authored Jan 21, 2022
1 parent 2869a05 commit 181d902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/shardchain/dbfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type LDBFactory struct {
// NewChainDB returns a new LDB for the blockchain for given shard.
func (f *LDBFactory) NewChainDB(shardID uint32) (ethdb.Database, error) {
dir := path.Join(f.RootDir, fmt.Sprintf("harmony_db_%d", shardID))
return rawdb.NewLevelDBDatabase(dir, 128, 64, "")
return rawdb.NewLevelDBDatabase(dir, 256, 1024, "")
}

// MemDBFactory is a memory-backed blockchain database factory.
Expand Down

0 comments on commit 181d902

Please sign in to comment.