Zero 1.3
Faster Initial Sync and Other Perf Improvements
Installation
npm install @rocicorp/zero@1.3Features
- Distributed Tracing: Clients can now pass OpenTelemetry trace context to zero-cache via a
getTraceparentcallback, enabling end-to-end trace correlation from your frontend through zero-cache to your API server. - Sync Metrics: Added five new OTel metrics for sync worker visibility:
zero.sync.active-client-groups,zero.sync.queries,zero.sync.rows,zero.sync.lock-wait-time, andzero.sync.pipeline-resets.
Performance
- 2x faster initial sync by switching to binary COPY protocol
- 20-30% faster updates by optimizing
compareValuesandmakeBoundComparator
Fixes
- Auth token and cookie not sent for cleanup pushes
- Hang during initial sync when no upstream changes occurred after backfill
- Publication validation not detecting
UPDATEprivilege changes - Spurious error logs from background Postgres connection warmup
Breaking Changes
None.