Skip to main content

MIN_SUPPORTED_EVENTS_PER_BATCH

Constant MIN_SUPPORTED_EVENTS_PER_BATCH 

Source
pub const MIN_SUPPORTED_EVENTS_PER_BATCH: usize = 128;
Expand description

Smallest number of events in one append every store must accept.

Worth doing the multiplication once, because two floors meet here and an adapter inherits the product rather than either factor. A multi-row tag insert at these floors binds 128 × 64 × 3 = 24,576 parameters, against SQLite’s SQLITE_MAX_VARIABLE_NUMBER of 32,766 — leaving 8,190 for the event rows themselves. The pair fits, with 23% headroom rather than the 41% a hundred-event batch would have implied, so an adapter that binds one extra parameter per tag is within a factor of 1.3 of the ceiling.