For AI assistants (Claude, Codex, Cursor, OpenCode, etc.)

ALWAYS readllms.txtfor curated documentation pages and examples.

v1

Get Started

IntroductionInstallTutorialQuickstartsSamples

Learning Zero

What is Sync?When to UseStatus

Using Zero

SchemaAuthenticationReading DataWriting DataZQL ReferenceZQL on the ServerConnection StatusREST APIs

Postgres

Provider SupportFeature Compatibility

Integrations

ReactSolidJSReact NativeCommunity

Deployment

Cloud ZeroPreviews

Self-Host

Debugging

InspectorAnalyze Query CLISlow QueriesReplicationQuery ASTszero-out

Old Stuff

Ad-Hoc QueriesCRUD MutatorsRLS Permissions

Meta

Release NotesReporting BugsOpen SourceAgents

Made by Rocicorp

Zero 1.2

IVM Performance and Bug Fixes

Installation

npm install @rocicorp/zero@1.2

Features

  • Replica metrics: Added new replica metrics group to otel, with db_size, wal_size, and backup_lag metrics.

Performance

Optimizations which improve query performance 10–30% in benchmarks:

  • Added fast-path to compare-utf8 for BMP-only strings (thanks @Karavil!)
  • Replaced closure-based BTree iterators with class instances (thanks @Karavil!)
  • Eliminated per-call object allocations in binary search
  • Reuse comparators instead of allocating closures

Fixes

  • Fix timestamp handling for BC dates and years outside 0-9999
  • Fix crash with fractional timestamp values in queries
  • Fix "Constraint should match partition key" error`
  • Fix custom push URL not being used for _zero_cleanupResults
  • Fix "unknown table" error when adding related() to existing query
  • Downgrade TTL clock update failure to warning
  • Bump litestream to v0.0.9 with S3 retry fixes

Breaking Changes

None.

NextIntroduction

On this page

InstallationFeaturesPerformanceFixesBreaking Changes
Edit this page on GitHub
K

Search

Search the contents of the documentation for Zero