pub enum BatchType {
Logged = 0,
Unlogged = 1,
Counter = 2,
}Expand description
The type of a batch.
Variants§
Logged = 0
By default, all operations in the batch are performed as logged, to ensure all mutations
eventually complete (or none will). See the notes on UNLOGGED batches for more details.
A LOGGED batch to a single partition will be converted to an UNLOGGED batch as an optimization.
Unlogged = 1
By default, ScyllaDB uses a batch log to ensure all operations in a batch eventually complete or none will
(note, however, that operations are only isolated within a single partition).
There is a performance penalty for batch atomicity when a batch spans multiple partitions. If you do not want
to incur this penalty, you can tell Scylla to skip the batchlog with the UNLOGGED option. If the UNLOGGED
option is used, a failed batch might leave the batch only partly applied.
Counter = 2
Use the COUNTER option for batched counter updates. Unlike other updates in ScyllaDB, counter updates
are not idempotent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchType
impl RefUnwindSafe for BatchType
impl Send for BatchType
impl Sync for BatchType
impl Unpin for BatchType
impl UnwindSafe for BatchType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more