[][src]Struct cita_database::config::Config

pub struct Config {
    pub wal: bool,
    pub category_num: Option<u32>,
    pub max_open_files: i32,
    pub compaction: Compaction,
    pub increase_parallelism: Option<i32>,
}

RocksDB configuration TODO https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide

Fields

wal: bool

WAL

category_num: Option<u32>

Number of categorys

max_open_files: i32

Number of open files

compaction: Compaction

About compaction

increase_parallelism: Option<i32>

Good value for total_threads is the number of cores.

Methods

impl Config[src]

pub fn with_category_num(category_num: Option<u32>) -> Self[src]

Create new Config with default parameters and specified set of category.

Trait Implementations

impl Default for Config[src]

impl Clone for Config[src]

Auto Trait Implementations

impl Unpin for Config

impl Sync for Config

impl Send for Config

impl UnwindSafe for Config

impl RefUnwindSafe for Config

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any