Skip to content

Limits

Applies to SEAM 1

Readers must check every count against its limit before allocating anything, and treat a violation as Corrupt. This table gathers the limits that the spec states.

Limit Value Page
varint length at most 10 bytes; a 10th byte that still carries continuation is Corrupt varint
count(limit) the varint must be at most the limit count(limit)
Seal trailer 32 bytes Seal trailer
Limit Value Page
Block size 4096 bytes, payload at most 4048 WAL block
Record payload len at most 16 MiB Record framing
Segment size default 64 MiB, a multiple of 4096, at least 4 blocks Segments
Unflushed bytes before commit_relaxed falls back to commit 8 MiB (UNFLUSHED_CAP) Durability modes
Relaxed flush window 1 ms to 1 s, default 5 ms Durability modes
Batches in flight wal_flushers, default 3 Durability modes
Old segment cleanup after open and every 512 commits Recovery
Limit Value Page
Record length from 32 bytes to 64 MiB Reading and the torn tail
Log rewrite threshold rewritten when it exceeds 4 MiB Rewrite and format stamp
Range drops at most 65536 Tag 7: range drops
Limit Value Page
File size a multiple of 4096 and at least 96 bytes SEAM data file
Frame raw_len at most 64 MiB Frame
Footer revision 1 to 5; above 5 is NewerFormat("sst footer") Footer
Block size writer target 16 KiB raw (64 KiB columnar, 128 KiB cold); never above 64 MiB Row block
Block alignment storage.block_align_kb, default 16 KiB SEAM data file
Row-block restart interval every 16th entry Row block
Bloom bits per key writers use 10 (SPEC V52 requires at least 10); readers do not check it Bloom filter
Bloom ranged prefixes at most 256, each 1 to 255 bytes Ranged tail
Stats revision 1 or 2; above 2 is NewerFormat("block stats") Block stats frame
Stats columns per block count(1024) Block stats frame
Stats bytes bounds count(64) each Column stats
Limit Value Page
Entries per block at most 65536 Columnar limits
Row width (cells) at most 1024 Columnar limits
Cells per block n × width at most 4 194 304 Columnar limits
Decoded size at most 256 MiB Columnar limits
Columnar revision 1 to 5; above 5 is NewerFormat("columnar block") Columnar block
Key restart offsets every 32nd key Layout of revisions 1 to 4
Packed width at most 64 bits Packed integers
DELTA samples every 64th value DELTA
ALP exponent at most 18 ALP
FSST symbol table at most 255 symbols, each 1 to 8 bytes FSST
FRONT shared-prefix reset every 16th value FRONT
Typed key length count(65535), at least 9 Typed key section
Limit Value Page
Entries per posting block at most 1024 Block head
Posting tiers at most 4 Block head
Bit-split bounds at most 3 Integer groups
Integer group frame at most 128 values, width at most 64 Integer groups
Typed tuple fields 2 to 8 Posting revision 4: 0xE4
Interleave depth at most 8 Interleaved tables
cache.hot entries at most 4 M cache.hot