More predictable LevelDB latency, LevelDB write batching.

This commit is contained in:
JoelKatz
2013-05-12 21:33:08 -07:00
parent 0193c48bf8
commit 40355c7b58
5 changed files with 63 additions and 27 deletions

View File

@@ -180,8 +180,6 @@ void Application::setup()
options.filter_policy = leveldb::NewBloomFilterPolicy(10);
if (theConfig.LDB_IMPORT)
options.write_buffer_size = 32 << 20;
options.write_buffer_size = std::max(options.write_buffer_size,
static_cast<size_t>(theConfig.getSize(siLDBWriteSize) << 20));
leveldb::Status status = leveldb::DB::Open(options, (theConfig.DATA_DIR / "hashnode").string(), &mHashNodeLDB);
if (!status.ok() || !mHashNodeLDB)
{