Skip to main content

MAX_REGISTERED_STRING_BYTES

Constant MAX_REGISTERED_STRING_BYTES 

Source
pub const MAX_REGISTERED_STRING_BYTES: usize = _; // 1_048_576usize
Expand description

Maximum stored length of one registered string (IRI, literal lexical form, or big language tag), counted in UTF-8 bytes.

This is the invariant that keeps ResolveStrings frames inside one gRPC message: every entry fits a frame budget of RESOLVE_FRAME_BUDGET_BYTES by construction, so the streaming protocol never needs entry-level chunking. It is also a storage-health bound — multi-megabyte RocksDB values are bad for compaction. Blobs of this scale belong in object storage referenced by IRI, inlined as RDF literals they are a data-modeling error.