pub struct StorageConfig {
pub data_dir: String,
pub cache_bytes: u64,
pub wal_checkpoint_bytes: u64,
pub max_record_bytes: u64,
}Expand description
Storage engine settings.
Fields§
§data_dir: StringDirectory for data files.
cache_bytes: u64Bytes of decoded memory records the storage engine keeps in memory per open database. Each record is charged its encoded size (about 5 KB for a memory with a 1024 dimension embedding). A host with spare memory can set this to the database size so every scan after the first is served from memory instead of the file system.
wal_checkpoint_bytes: u64The WAL is checkpointed (record file synced, record map persisted, log truncated) once it grows past this many bytes.
max_record_bytes: u64Largest encoded memory record accepted; bigger writes fail with
CapacityExceeded.
Trait Implementations§
Source§impl Clone for StorageConfig
impl Clone for StorageConfig
Source§impl Debug for StorageConfig
impl Debug for StorageConfig
Source§impl Default for StorageConfig
impl Default for StorageConfig
Source§impl<'de> Deserialize<'de> for StorageConfig
impl<'de> Deserialize<'de> for StorageConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnsafeUnpin for StorageConfig
impl UnwindSafe for StorageConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more