Skip to content

Coalesce commits through a single worker task#385

Merged
Barre merged 1 commit intomainfrom
commit-coalescer
Apr 15, 2026
Merged

Coalesce commits through a single worker task#385
Barre merged 1 commit intomainfrom
commit-coalescer

Conversation

@Barre
Copy link
Copy Markdown
Owner

@Barre Barre commented Apr 15, 2026

Replace the sequence-watermark WriteCoordinator with an mpsc-based worker that drains queued transactions, merges them into one WriteBatch, and issues a single db.write_with_options per batch. The worker emits system_counter_key only when next_id has advanced since the last batch, so metadata and data ops no longer carry a counter write.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zerofs Ready Ready Preview, Comment Apr 15, 2026 6:07am

Replace the sequence-watermark WriteCoordinator with an mpsc-based worker
that drains queued transactions, merges them into one WriteBatch, and
issues a single db.write_with_options per batch. The worker emits
system_counter_key only when next_id has advanced since the last batch,
so metadata and data ops no longer carry a counter write.
@Barre Barre force-pushed the commit-coalescer branch from 76bff8b to f99e2df Compare April 15, 2026 06:07
@Barre Barre merged commit 0809672 into main Apr 15, 2026
31 checks passed
@Barre Barre deleted the commit-coalescer branch April 15, 2026 06:40
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