diff --git a/ethdb/leveldb/leveldb.go b/ethdb/leveldb/leveldb.go index 378d4c3cd2..71ad8cd227 100644 --- a/ethdb/leveldb/leveldb.go +++ b/ethdb/leveldb/leveldb.go @@ -97,8 +97,11 @@ func New(file string, cache int, handles int, namespace string) (*Database, erro // Open the db and recover any potential corruptions db, err := leveldb.OpenFile(file, &opt.Options{ OpenFilesCacheCapacity: handles, - BlockCacheCapacity: cache / 2 * opt.MiB, - WriteBuffer: cache / 4 * opt.MiB, // Two of these are used internally + + // BlockCache can be used for caching: data block, index block as well as + // filter block. The more capacity block cache has, the less disk hit we + // have. + BlockCacheCapacity: cache * opt.MiB, Filter: filter.NewBloomFilter(10), DisableSeeksCompaction: true, })