Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Dir string `description:"Dir is the path of the directory where key data will be stored in."` ValueDir string `description:"ValueDir is the path of the directory where value data will be stored in."` SyncWrites bool `` /* 166-byte string literal not displayed */ TableLoadingMode string `description:"TableLoadingMode indicates which file loading mode should be used for the LSM tree data files."` ValueLogLoadingMode string `description:"ValueLogLoadingMode indicates which file loading mode should be used for the value log data files."` NumVersionsToKeep int `description:"NumVersionsToKeep sets how many versions to keep per key at most."` ReadOnly bool `description:"When ReadOnly is true the DB will be opened on read-only mode."` Truncate bool `description:"Truncate indicates whether value log files should be truncated to delete corrupt data, if any."` MaxTableSize int64 `description:"MaxTableSize sets the maximum size in bytes for each LSM table or file."` LevelSizeMultiplier int `description:"LevelSizeMultiplier sets the ratio between the maximum sizes of contiguous levels in the LSM."` MaxLevels int `description:"Maximum number of levels of compaction allowed in the LSM."` ValueThreshold int `` /* 151-byte string literal not displayed */ NumMemtables int `description:"NumMemtables sets the maximum number of tables to keep in memory before stalling."` NumLevelZeroTables int `description:"NumLevelZeroTables sets the maximum number of Level 0 tables before compaction starts."` NumLevelZeroTablesStall int `` /* 139-byte string literal not displayed */ LevelOneSize int64 `description:"LevelOneSize sets the maximum total size for Level 1."` ValueLogFileSize int64 `description:"ValueLogFileSize sets the maximum size of a single value log file."` ValueLogMaxEntries uint32 `description:"ValueLogMaxEntries sets the maximum number of entries a value log file can hold approximately."` NumCompactors int `description:"NumCompactors sets the number of compaction workers to run concurrently."` CompactL0OnClose bool `description:"CompactL0OnClose determines whether Level 0 should be compacted before closing the DB."` LogRotatesToFlush int32 `description:"LogRotatesToFlush sets the number of value log file rotates after which the Memtables are flushed to disk."` }
Config contains the settings for Badger database.
Click to show internal directories.
Click to hide internal directories.