~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/zds

atproto pds · mirror of https://tangled.org/zat.dev/zds

0
0
32 lines · 1.7 KB Raw History

record size limit verification

History: how the record size limit was compared and verified when it was added in October 2026. The current behavior is in record size limits.

Source comparison on 2026-10-17:

  • Reference PDS 9f66a7e54b030700c03eda0bdbf35ffe756f4cd8: createRecord sets jsonLimit=1_000_000; repo/prepare.ts encodes the prepared record without a corresponding encoded-size check in the inspected path. ZDS intentionally measures encoded bytes, permitting JSON escaping overhead.
  • Tranquil d309780ca3a43cd73ef6bd10082d89b2aa268c71: record/write.rs encodes and stores create/update records without an explicit size check in that path. Its general HTTP body cap is 16 MiB. Source inspection is not a cross-implementation runtime parity claim.

Verification covers actual local HTTP writes at 999,999, 1,000,000, 1,000,001 and 1,048,576 bytes, JSON escaping expansion, batch atomicity, valid batches exceeding one million aggregate bytes, and deletion. Tests inspect stored block lengths and record/block/commit/event counts. A Zig test walks real MST entries and encoded blocks for import boundary checks. Full signed HTTP import at these boundaries is not covered by that test. The existing migration and permissioned HTTP smoke suites also run.

A 100-record local write benchmark completed at 1,910 ops/s (52.356 ms), without a performance comparison claim. The check adds one length comparison after the existing encoding; it does not add an encoding pass.

The official-PDS benchmark was attempted but could not run: its cached build cannot resolve the varint dependency. This does not provide a comparative measurement and is not used as validation of ZDS behavior.