Skip to content

storage-controller: respond to table appends before txn-wal apply#37443

Draft
def- wants to merge 1 commit into
MaterializeInc:mainfrom
def-:txn-wal-deferred-apply
Draft

storage-controller: respond to table appends before txn-wal apply#37443
def- wants to merge 1 commit into
MaterializeInc:mainfrom
def-:txn-wal-deferred-apply

Conversation

@def-

@def- def- commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

The commit to the txns shard already makes a table write durable and linearized, so send the append response then and run the idempotent apply and compaction afterwards, off the caller's critical path. Reads of the just-written shards block until the apply happens, and a crash before applying is covered by the next append's apply_le.

Add the MultiTableTransactionCommit feature-benchmark scenario, which isolates the group commit response path: COMMIT of a write transaction spanning 100 tables drops from ~135ms to ~45ms locally.

The commit to the txns shard already makes a table write durable and
linearized, so send the append response then and run the idempotent
apply and compaction afterwards, off the caller's critical path. Reads
of the just-written shards block until the apply happens, and a crash
before applying is covered by the next append's apply_le.

Add the MultiTableTransactionCommit feature-benchmark scenario, which
isolates the group commit response path: COMMIT of a write transaction
spanning 100 tables drops from ~135ms to ~45ms locally.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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