pub struct IndexingLimits {
pub max_unique_values_per_field: usize,
pub max_field_payload_size: usize,
}Expand description
Configuration limits for the indexing process.
These limits protect against unbounded memory growth when indexing journal files with high-cardinality fields or large payloads.
Fields§
§max_unique_values_per_field: usizeMaximum number of unique values to index per field.
Fields with more unique values than this limit will have their indexing truncated. This protects against high-cardinality fields (e.g., MESSAGE with millions of unique values) causing memory exhaustion.
max_field_payload_size: usizeMaximum payload size (in bytes) for field values to index.
Field values with payloads larger than this limit (or compressed values) will be skipped. This prevents large binary data or encoded content from consuming excessive memory.
Trait Implementations§
Source§impl Clone for IndexingLimits
impl Clone for IndexingLimits
Source§fn clone(&self) -> IndexingLimits
fn clone(&self) -> IndexingLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IndexingLimits
Source§impl Debug for IndexingLimits
impl Debug for IndexingLimits
Source§impl Default for IndexingLimits
impl Default for IndexingLimits
Source§fn default() -> IndexingLimits
fn default() -> IndexingLimits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndexingLimits
impl RefUnwindSafe for IndexingLimits
impl Send for IndexingLimits
impl Sync for IndexingLimits
impl Unpin for IndexingLimits
impl UnsafeUnpin for IndexingLimits
impl UnwindSafe for IndexingLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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