leveldb3: adjust memory allocation for each bucket
This commit is contained in:
@@ -72,8 +72,8 @@ func (store *LevelDB3Store) loadDB(name string) (*leveldb.DB, error) {
|
|||||||
}
|
}
|
||||||
if name != DEFAULT {
|
if name != DEFAULT {
|
||||||
opts = &opt.Options{
|
opts = &opt.Options{
|
||||||
BlockCacheCapacity: 4 * 1024 * 1024, // default value is 8MiB
|
BlockCacheCapacity: 16 * 1024 * 1024, // default value is 8MiB
|
||||||
WriteBuffer: 2 * 1024 * 1024, // default value is 4MiB
|
WriteBuffer: 8 * 1024 * 1024, // default value is 4MiB
|
||||||
Filter: bloom,
|
Filter: bloom,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user