Retweak BASE and MULTIPLIER in rocksdb config. (#1445)
This commit is contained in:
parent
bc8ba10184
commit
a2c4d550d0
@ -20,8 +20,8 @@ use std::default::Default;
|
|||||||
use rocksdb::{DB, Writable, WriteBatch, IteratorMode, DBVector, DBIterator,
|
use rocksdb::{DB, Writable, WriteBatch, IteratorMode, DBVector, DBIterator,
|
||||||
IndexType, Options, DBCompactionStyle, BlockBasedOptions, Direction};
|
IndexType, Options, DBCompactionStyle, BlockBasedOptions, Direction};
|
||||||
|
|
||||||
const DB_FILE_SIZE_BASE: u64 = 16 * 1024 * 1024;
|
const DB_FILE_SIZE_BASE: u64 = 32 * 1024 * 1024;
|
||||||
const DB_FILE_SIZE_MULTIPLIER: i32 = 5;
|
const DB_FILE_SIZE_MULTIPLIER: i32 = 2;
|
||||||
const DB_BACKGROUND_FLUSHES: i32 = 2;
|
const DB_BACKGROUND_FLUSHES: i32 = 2;
|
||||||
const DB_BACKGROUND_COMPACTIONS: i32 = 2;
|
const DB_BACKGROUND_COMPACTIONS: i32 = 2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user