pub const MAX_RANGE_NODES: usize = 1_000_000;Expand description
Maximum number of B+tree nodes visited in a single range scan.
Power-of-ten Rule 2: every loop has an explicit upper bound. 1 000 000 nodes × ~32 slots/node ≈ 32 M entries — comfortably above the design.md “collection scan” target. The bound is configurable in M5+ when the query planner needs higher ceilings.