---
title: "Rebuilding Linear’s delta sync read path"
description: "Linear moved its delta sync read path, which lets reconnecting local-first clients fetch only changes since their last checkpoint, from a Postgres table to turbopuffer inverted indexes."
url: "https://swe.quest/articles/rebuilding-linear-s-delta-sync-read-path-c44713dd7fac387a"
canonical: "https://linear.app/now/rebuilding-delta-sync-read-path"
source: "Linear"
published: "2026-08-18"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["local-first","postgres","search","event-driven","performance"]
---

# Rebuilding Linear’s delta sync read path

A post on [Linear](https://swe.quest/sources/linear.md), published 2026-08-18, 7 min read, Case study. Original: [https://linear.app/now/rebuilding-delta-sync-read-path](https://linear.app/now/rebuilding-delta-sync-read-path)

## Summary

Linear moved its delta sync read path, which lets reconnecting local-first clients fetch only changes since their last checkpoint, from a Postgres table to turbopuffer inverted indexes. On Postgres, the reconnect query combined a widening ID range with array-overlap predicates for sync groups and subscriptions, which drove up CPU and made p95/p99 latency volatile. Read replicas didn't help because the per-request intersection work stayed the same. turbopuffer stores per-workspace posting lists of sync action IDs and intersects them directly, fed by a custom CDC pipeline with about 1s p50 replication lag. Reads run as a metadata scan with late payload enrichment from Postgres, Postgres serves an overlapping authoritative head slice with deduplication and fallback, and shadow-mode comparison verified correctness. Tail latency now stays flat as workspaces grow.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Local-first & sync](https://swe.quest/tags/local-first.md) (Architecture & design)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- Postgres indexing ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- change data capture
- inverted indexes

## Keywords

Linear, turbopuffer, PostgreSQL, delta sync, posting lists, logical replication

## Related posts

- [Turso Sync: Local-First SQLite with Push and Pull](https://swe.quest/articles/turso-sync-local-first-sqlite-with-push-and-pull-8967f9053b2dc6bc.md): Turso · 2026-11-16 · Medium · 10 min read · Local-first & sync, SQLite, Replication, Event-driven architecture, Performance engineering
  Turso Sync replaces libSQL's page-based Embedded Replicas with logical row-level changes captured via CDC in Turso Database, a Rust rewrite of SQLite, so reads and writes stay local and apps call push() and pull() explicitly.
- [Turso Sync: a much, much, much better way to sync](https://swe.quest/articles/turso-sync-a-much-much-much-better-way-to-sync-f7b69ab545fa6e56.md): Turso · 2026-04-24 · Medium · 8 min read · SQLite, Local-first & sync, Replication, Performance engineering
  Turso, a Rust rewrite of SQLite, replaces libSQL's Embedded Replicas with a sync model built on change data capture, shipping logical changes instead of physical pages and splitting sync into separate push() and pull() operations.
- [From v0.7 to v0.8: How group commit changed Turso's tail latency](https://swe.quest/articles/from-v0-7-to-v0-8-how-group-commit-changed-turso-s-tail-latency-395b8a8a61113276.md): Turso · 2026-09-29 · Medium · 13 min read · Storage engines, SQLite, Performance engineering, Concurrency, Databases
  Turso v0.8 adds group commit to its MVCC write path so that concurrent committers share a single fsync of the logical log instead of each paying for their own.
- [Everyone gets faster writes: We turned off FPW's in Neon](https://swe.quest/articles/everyone-gets-faster-writes-we-turned-off-fpw-s-in-neon-60d0cd25f29077e7.md): Neon · 2026-05-07 · Hard · 7 min read · PostgreSQL, Storage engines, Performance engineering, Distributed databases
  Neon disabled Postgres full-page writes fleet-wide because its stateless compute streams WAL to a Paxos safekeeper quorum and has no local disk pages that can tear.
- [Beyond synthetic testing: Capturing and replaying real database workloads at Airbnb](https://swe.quest/articles/beyond-synthetic-testing-capturing-and-replaying-real-database-workloads-at-ad8d4a3a0c1cef6e.md): Airbnb Engineering · 2026-10-06 · Medium · 11 min read · MySQL, Testing, Capacity planning, Performance engineering, Databases
  Airbnb replaced fragmented per-language client-side query logging with a client-agnostic capture point in ProxySQL, so real production MySQL traffic can be replayed offline.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
