pub static MAX_COMPUTATION_DEPTH: Lazy<u8>
Expand description
Specifies how deep various forms of computation will go before the query fails
with crate::error::Db::ComputationDepthExceeded
.
For reference, use ~15 per MiB of stack in release mode.
During query parsing, the total depth of calls to parse values (including arrays, expressions, functions, objects, sub-queries), Javascript values, and geometry collections count against this limit.
During query execution, all potentially-recursive code paths count against this limit. Whereas parsing assigns equal weight to each recursion, certain expensive code paths are allowed to count for more than one unit of depth during execution.