pub struct WalGroupCommitConfig {
pub sync_mode: WalSyncMode,
pub group_commit_interval_ms: u64,
pub group_commit_max_batch: usize,
}Expand description
WAL group commit configuration
Fields§
§sync_mode: WalSyncModeSync mode for the WAL
group_commit_interval_ms: u64Maximum time to wait before flushing a group (in milliseconds) Only used when sync_mode is GroupCommit
group_commit_max_batch: usizeMaximum number of records to batch before forcing a flush Only used when sync_mode is GroupCommit
Implementations§
Source§impl WalGroupCommitConfig
impl WalGroupCommitConfig
Sourcepub fn sync_mode(self, mode: WalSyncMode) -> Self
pub fn sync_mode(self, mode: WalSyncMode) -> Self
Set the sync mode
Sourcepub fn group_commit_interval_ms(self, ms: u64) -> Self
pub fn group_commit_interval_ms(self, ms: u64) -> Self
Set the group commit interval in milliseconds
Sourcepub fn group_commit_max_batch(self, max: usize) -> Self
pub fn group_commit_max_batch(self, max: usize) -> Self
Set the maximum batch size for group commit
Sourcepub fn group_commit() -> Self
pub fn group_commit() -> Self
Enable group commit mode with default settings
Trait Implementations§
Source§impl Clone for WalGroupCommitConfig
impl Clone for WalGroupCommitConfig
Source§fn clone(&self) -> WalGroupCommitConfig
fn clone(&self) -> WalGroupCommitConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalGroupCommitConfig
impl Debug for WalGroupCommitConfig
Auto Trait Implementations§
impl Freeze for WalGroupCommitConfig
impl RefUnwindSafe for WalGroupCommitConfig
impl Send for WalGroupCommitConfig
impl Sync for WalGroupCommitConfig
impl Unpin for WalGroupCommitConfig
impl UnsafeUnpin for WalGroupCommitConfig
impl UnwindSafe for WalGroupCommitConfig
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