pub struct ResultLimits {
pub max_rows: Option<u64>,
pub max_bytes: Option<u64>,
pub max_candidate_count: Option<u64>,
}Expand description
Per-request result bounds (spec sections 4.9 and 10.4, S1D-001).
Every request is bounded: None does NOT mean unbounded, it means the
server applies its configured default (see the DEFAULT_* constants for
the conservative shipped defaults) and may clamp explicit values down to
configured ceilings. The effective limits are what the executor
enforces; exceeding them fails the request with
mongreldb_types::errors::ErrorCategory::ResourceExhausted.
Fields§
§max_rows: Option<u64>Maximum result rows; None applies the server default.
max_bytes: Option<u64>Maximum result bytes; None applies the server default.
max_candidate_count: Option<u64>Maximum candidate rows scanned during retrieval; None applies the
server default.
Implementations§
Source§impl ResultLimits
impl ResultLimits
Sourcepub fn effective_max_rows(&self) -> u64
pub fn effective_max_rows(&self) -> u64
Effective row bound after applying server-enforceable defaults.
Sourcepub fn effective_max_bytes(&self) -> u64
pub fn effective_max_bytes(&self) -> u64
Effective byte bound after applying server-enforceable defaults.
Sourcepub fn effective_max_candidate_count(&self) -> u64
pub fn effective_max_candidate_count(&self) -> u64
Effective candidate-count bound after applying server-enforceable defaults.
Trait Implementations§
Source§impl Clone for ResultLimits
impl Clone for ResultLimits
Source§fn clone(&self) -> ResultLimits
fn clone(&self) -> ResultLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more