Skip to content
About
Main content

Summary and key takeaways

The reframe. extracts a derivative from a system that treats its own history as private. It introduces two constraints that earlier lacked: ownership (the source belongs to someone else) and (an incremental result is a over a history, correct only if nothing is lost, duplicated or reordered).

The break-even model. Full recompute costs S·c. Incremental costs Δ·S·c′ + F. Incremental wins when Δ < (1 − F/(S·c)) · c/c′. With a 20× the crossover is near 5%. Below some absolute size, F makes incremental strictly worse.

The four phases:

PhaseKey points
Detect: log-based (retention coupling, inverted blast radius), trigger-based (2–5× write latency), polling (, invisible , unreliable column). Every method has a bypass set it cannot measure.
RepresentEnvelope = op + before/after images + source position + transaction id + two timestamps. (update = −old, +new). Key-partitioned transport drops transaction atomicity. Schema is an in-band ordered fact.
ApplyMerge needs a unique, stable, non-null key. Cost scales with substrate granularity (, file, row). : cheap only with an inverse (SUM, COUNT yes; MAX, quantiles no); joins need full state.
RepairOverlap deliberately, sink. horizon = retention. Never ; use CDC or . with state. Type 2 history needs path-complete capture.

Coarse methods that avoid CDC: watermark-based incremental batch (append-only, partitioned by arrival; add a ) and on versioned tables (the cursor races the garbage collector).

Equations and formulas:

FormulaMeaning
Δ < (1 − F/(S·c)) · c/c′break-even change fraction
Δ(R ⋈ S) = ΔR⋈S + R⋈ΔS + ΔR⋈ΔSincremental join, needs both operands as state
update = (old, −1) + (new, +1)signed multiplicity
new_sum = old_sum − deletedwhy a group (inverse) makes deletes cheap

Four principles earned here:

  1. Observability of change is a property of the source.
  2. Incrementality requires an inverse.
  3. Derived state drifts; only recomputation proves otherwise.
  4. A private detail, once consumed, becomes a public interface.

One repeating shape: retention is a negotiation between a collector and the slowest reader.

Operational truth. Incremental systems do not fail loudly. The pipeline stays green while the numbers drift. Schedule the rebuild you think you do not need.