Zero 1.9

Query Correctness and Reliability

Installation

npm install @rocicorp/zero@1.9

Overview

Zero 1.9 improves query/mutation correctness and reliability.

Features

Performance

First Mutation Latency

On the first mutation, Zero Server fetches and caches PostgreSQL schema metadata. In benchmarks, that full request is 2.7x faster (done in #6292, thanks @diegopereira99!). This is most noticeable with cold-starts in serverless environments like AWS Lambda.

Cold Mutation Latency

Measured on M5 Pro. Lower is better.

Fixes

Breaking Changes

Existing Primary-Key Inserts

insert now succeeds without changing the row when its Zero primary key already exists; before 1.9, the server returned an error. A successful insert does not necessarily prove that a row was created.