Skip to main content

DEFAULT_PER_WRITE

Constant DEFAULT_PER_WRITE 

Source
pub const DEFAULT_PER_WRITE: usize = 16;
Expand description

How many records one write may need, absent configuration.

Reasonable range: 1 to 64. Bounds what a single write can cost somebody else’s server. The number is per write rather than per rule because a rule about the accounts a record names asks the same question of each of them: one post carrying a reply, a quote and several mentions is already several repositories. Sixteen covers that post, and the reply and quote gates a thread rule wants, with room over.

A write needing more records than this is refused before it is judged, rather than judged on some of them; see MAX_NAMED_ACCOUNTS.