# Bitalosdb

Option Value Description
BytesPerSync 524288 Bytes written per sync
DisableWAL Storage service:false,cache service:true Whether to disable WAL
MemTableSize 268435456~536870912 Single memtable size
MemTableStopWritesThreshold 8 Writes are stopped when filled memtable number exceeds MemTableStopWritesThreshold
Id - DB ID
Verbose true Whether to output Event log details
LogTag - Log Tag
DataType - DB type definition
CompressionType 0 Bithash compression, 0=no compression 1=snappy compression
DeleteFileInternal 4 Deletion interval of invalid files, unit: seconds
UseBithash true Whether to enable Bithash
UseBitable false Whether to enable Bitalostable, set false for regular clusters
AutoCompact true Whether to enable auto compact for Bithash
CompactInfo - Compact control parameters, including start/end time/interval/proportion of invalid data
CacheSize 0 Cache size, set to 0 to disable cache
CacheType 1 Cache type, 1=lru 2=lfu
CacheShards 36 Number of cache shards
CacheHashSize - Initial size of hashmap in cache
UseMapIndex true Whether to use accelerated indexing
UsePrefixCompress true Whether to enable Bitpage prefix compression
UseBlockCompress false Whether to enable Bitpage block compression,suggest to set true for storing huge small values
FlushReporter - Callback for memtable flushing, set nil for regular clusters
KeyHashFunc - Callback for calculating key hash
KvCheckExpireFunc - Callback to check whether key has expired
KvTimestampFunc - Callback to get key expiration time
IOWriteLoadThresholdFunc - Callback for IO control, controls whether files can be deleted to reduce IO pressure, true=allowed, false=disabled
ZUOYEBANG