Skip to content

Commit 181d902

Browse files
authored
increase cache and handles for leveldb (#4019)
* increase cache for leveldb * 256 for cache
1 parent 2869a05 commit 181d902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/shardchain/dbfactory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type LDBFactory struct {
2424
// NewChainDB returns a new LDB for the blockchain for given shard.
2525
func (f *LDBFactory) NewChainDB(shardID uint32) (ethdb.Database, error) {
2626
dir := path.Join(f.RootDir, fmt.Sprintf("harmony_db_%d", shardID))
27-
return rawdb.NewLevelDBDatabase(dir, 128, 64, "")
27+
return rawdb.NewLevelDBDatabase(dir, 256, 1024, "")
2828
}
2929

3030
// MemDBFactory is a memory-backed blockchain database factory.

0 commit comments

Comments
 (0)