Skip to content
quarry View Ticket
Login

View Ticket

2026-09-24
00:53 • Ticket [f16b31e0b6] Full reindex takes hours; a direct frames-to-fold path should make it minutes status still Fixed with 1 other change artifact: 55ffebf6b5 user: zeitgeist
2026-08-21
12:14 • Fixed ticket [f16b31e0b6]. artifact: 6f038c50e2 user: tmp-ops
2026-08-20
20:49 • New ticket [f16b31e0b6]. artifact: 6e1fc03850 user: tmp-ops

Full reindex takes hours; a direct frames-to-fold path should make it minutes

Fixedf16b31e0b602dd8ff89fa1c619f086c2e0c02e6bCreated 102.1 days agoUpdated 67.9 days ago
Description2026-08-20 20:49:24
fossil rebuilds the tcl repository in about a minute, in-process. Our full replay of the same data takes hours: zit frames streams every census byte through a subprocess, artifacts are JSON-wrapped and persisted through JetStream, the consumer pulls 256 messages at a time, and each batch pays FTS, ticket-doc, contributor and filechange refresh work.

The event bus exists for INCREMENTAL multi-node sync (0001 section 4). A local rebuild is pure derivation and does not need the bus: Reindex can read `zit frames` directly into Fold — parse, batch, fold, then set the publisher cursor to the stream end so incremental sync resumes normally. Same artifacts, same idempotent folds, no serialization/persistence round-trip, no 1GiB/1hr live-tail loss window.

Target invariant: a full reindex of the largest store completes in minutes, not hours. Measured floor to beat: fossil rebuild of tcl about 60s; zit ls --no-cache (full manifest materialization) 23s.

Related: the per-batch refreshTicketDoc/refreshContributor work is quadratic-ish over a bulk replay and could be deferred to a single pass at round end during rebuild.

2026-08-21 12:14:59

Superseded and delivered via fa69d59bb2: direct frames-to-fold landed, then crosslink consumption. Final numbers there.