Struct re_data_store::DataStoreConfig
source · pub struct DataStoreConfig {
pub indexed_bucket_num_rows: u64,
pub store_insert_ids: bool,
}
Fields§
§indexed_bucket_num_rows: u64
The maximum number of rows in an indexed bucket before triggering a split. Does not apply to static data.
⚠ When configuring this threshold, do keep in mind that indexed tables are always scoped to a specific timeline and a specific entity.
This effectively puts an upper bound on the number of rows that need to be sorted when an indexed bucket gets out of order (e.g. because of new insertions or a GC pass). This is a tradeoff: less rows means faster sorts at the cost of more metadata overhead. In particular:
- Query performance scales inversely logarithmically to this number (i.e. it gets better the higher this number gets).
- GC performance scales quadratically with this number (i.e. it gets better the lower this number gets).
See Self::DEFAULT
for defaults.
store_insert_ids: bool
If enabled, will store the ID of the write request alongside the inserted data.
This can make inspecting the data within the store much easier, at the cost of an extra
u64
value stored per row.
Enabled by default in debug builds.
Implementations§
Trait Implementations§
source§impl Clone for DataStoreConfig
impl Clone for DataStoreConfig
source§fn clone(&self) -> DataStoreConfig
fn clone(&self) -> DataStoreConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataStoreConfig
impl Debug for DataStoreConfig
source§impl Default for DataStoreConfig
impl Default for DataStoreConfig
source§impl PartialEq for DataStoreConfig
impl PartialEq for DataStoreConfig
source§fn eq(&self, other: &DataStoreConfig) -> bool
fn eq(&self, other: &DataStoreConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for DataStoreConfig
impl StructuralPartialEq for DataStoreConfig
Auto Trait Implementations§
impl Freeze for DataStoreConfig
impl RefUnwindSafe for DataStoreConfig
impl Send for DataStoreConfig
impl Sync for DataStoreConfig
impl Unpin for DataStoreConfig
impl UnwindSafe for DataStoreConfig
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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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