Reduce number of open LevelDB files to 64
This commit is contained in:
parent
af10e3f6ac
commit
2233fc5318
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ static leveldb::Options GetOptions(size_t nCacheSize) {
|
||||||
options.write_buffer_size = nCacheSize / 4; // up to two write buffers may be held in memory simultaneously
|
options.write_buffer_size = nCacheSize / 4; // up to two write buffers may be held in memory simultaneously
|
||||||
options.filter_policy = leveldb::NewBloomFilterPolicy(10);
|
options.filter_policy = leveldb::NewBloomFilterPolicy(10);
|
||||||
options.compression = leveldb::kNoCompression;
|
options.compression = leveldb::kNoCompression;
|
||||||
|
options.max_open_files = 64;
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue