Revision 61d6832ba7adc22d3dd3b1c1aa4352d295f1a814
Committed on 01/01/2026 11:07 am by
Zohaib Sibte Hassan <zohaib@sibte.pk> [GitHub Diff]
Perf: Reduce network payload in 2PC COMMIT phase
Optimize the distributed commit mechanism by removing redundant transaction
statements and CDC data from the Phase 2 (COMMIT) request. Since this data is
already persisted as "Write Intents" during Phase 1 (PREPARE), it is not needed
on the wire during commit.
- Coordinator: Stop sending Statements in PhaseCommit requests.
- Engine: Update CommitResult to return DDL SQL extracted from persisted intents.
- Handler: Use engine-provided DDL SQL for schema version increments instead of
inspecting the network payload.
- Tests: Update write coordinator tests to reflect the optimized payload.
This significantly reduces bandwidth usage for multi-row transactions.