pub struct ExecutionConfig {
pub max_batch_size: usize,
pub collect_stats: bool,
pub memory_limit: usize,
pub max_rows_in_memory: usize,
}Expand description
Configuration options for query execution.
Fields§
§max_batch_size: usizeMaximum number of rows to buffer in memory.
collect_stats: boolWhether to collect detailed statistics.
memory_limit: usizeMemory limit in bytes (0 for no limit).
max_rows_in_memory: usizeMaximum number of rows that operators can materialize in memory.
This limit applies to blocking operators like sort, join, and aggregate
that need to collect rows before producing output. When an operator
exceeds this limit, it returns a QueryTooLarge error.
Set to 0 to disable the limit (not recommended for production). Default: 1,000,000 rows.
Implementations§
Source§impl ExecutionConfig
impl ExecutionConfig
Sourcepub const fn with_batch_size(self, size: usize) -> Self
pub const fn with_batch_size(self, size: usize) -> Self
Sets the maximum batch size.
Sourcepub const fn with_stats(self) -> Self
pub const fn with_stats(self) -> Self
Enables statistics collection.
Sourcepub const fn with_memory_limit(self, limit: usize) -> Self
pub const fn with_memory_limit(self, limit: usize) -> Self
Sets the memory limit.
Sourcepub const fn with_max_rows_in_memory(self, limit: usize) -> Self
pub const fn with_max_rows_in_memory(self, limit: usize) -> Self
Sets the maximum rows that can be materialized in memory.
This limit applies to blocking operators like sort, join, and aggregate. Set to 0 to disable the limit (not recommended for production).
Trait Implementations§
Source§impl Clone for ExecutionConfig
impl Clone for ExecutionConfig
Source§fn clone(&self) -> ExecutionConfig
fn clone(&self) -> ExecutionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more