Skip to main content

Crate fedimint_rocksdb

Crate fedimint_rocksdb 

Source

Re-exportsΒ§

pub use rocksdb;

ModulesΒ§

envs
rocks_db_open_blocking_builder πŸ”’
Tools for manipulating the type state of RocksDbOpenBlockingBuilder.

StructsΒ§

RocksDb
RocksDbOpenBlockingBuilder
Use builder syntax to set the inputs and finish with open_blocking().
RocksDbReadOnly
RocksDbReadOnlyTransaction
RocksDbTransaction

EnumsΒ§

RocksDbOpenError
Why a RocksDb or RocksDbReadOnly could not be opened.

ConstantsΒ§

DEFAULT_BLOCK_CACHE_SIZE πŸ”’
Default block cache size: 64 MiB (RocksDB default is 8 MiB). Index/filter blocks are placed in this cache too (set_cache_index_and_filter_blocks), so everything is bounded. With long keys a table’s index block reaches several MiB, and every lookup needs it, so the cache must be able to hold the index blocks of the tables being read or each lookup reads and decodes them again.
DEFAULT_MAX_OPEN_FILES πŸ”’
Default max open files: 256 (RocksDB default is unlimited which consumes memory for each open file handle and associated metadata)
DEFAULT_WRITE_BUFFER_SIZE πŸ”’
Default write buffer size: 2 MiB (RocksDB default is 64 MiB)

FunctionsΒ§

convert_to_async_stream πŸ”’
get_default_options πŸ”’
is_power_of_two πŸ”’
next_prefix πŸ”’
parse_env_size πŸ”’