Skip to content

feat(data_plane): wire DualWriteSink into production main - #157

Merged
zzylol merged 1 commit into
mainfrom
feat/wire-dual-write
May 13, 2026
Merged

zzylol merged 1 commit into
mainfrom
feat/wire-dual-write

Conversation

@zzylol

@zzylol zzylol commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Phase 5 M2.3.4b — replaces the production StoreOutputSink in main.rs with DualWriteSink (introduced in PR #156). Every precompute the worker emits now lands in BOTH the legacy SketchStore AND the new sid-keyed SketchIndex via append_precompute.

The legacy query path is unchanged — SketchIndex is being populated but no consumer reads precompute payloads from it yet (that's M2.3.5). Per-row overhead: one snapshot read + agg-id lookup + sid hash + Box<dyn AggregateCore> clone, all paid on the worker thread.

Test plan

🤖 Generated with Claude Code

Phase 5 M2.3.4b — replaces the production `StoreOutputSink` in
`main.rs` with `DualWriteSink` (introduced in PR #156). Every
precompute the worker emits now lands in BOTH the legacy
`SketchStore` (which still serves queries today) AND the new
sid-keyed `SketchIndex` via `append_precompute`.

The legacy query path is unchanged — SketchIndex is being populated
but no consumer reads precompute payloads from it yet. That's
M2.3.5. Per-row overhead is one snapshot read + per-row agg-id
lookup + sid hash + Box clone, all paid on the worker thread.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zzylol
zzylol merged commit b2ff484 into main May 13, 2026
@zzylol
zzylol deleted the feat/wire-dual-write branch July 17, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant