Skip to content

docs: restructure transaction & checkpoint docs for user-first reading - #1050

Open
zhanglei1949 wants to merge 4 commits into
alibaba:mainfrom
zhanglei1949:zl/ckp-txn-doc
Open

docs: restructure transaction & checkpoint docs for user-first reading#1050
zhanglei1949 wants to merge 4 commits into
alibaba:mainfrom
zhanglei1949:zl/ckp-txn-doc

Conversation

@zhanglei1949

Copy link
Copy Markdown
Member

Summary

Restructure the transaction and checkpoint documentation to be user-first: deployment modes, ACID guarantees, and usage come first; AP/TP specifics, edge cases, and internal mechanisms move later or into dedicated pages.

Changes

  • transaction.mdx - reordered (modes -> ACID -> run transactions -> isolation -> access modes -> durability -> best practices -> appendix); clarified Atomicity/Consistency so both modes show the same guarantee; condensed design notes / version history / roadmap into an appendix.
  • checkpoint.md - slimmed to user-facing content (when and why, run, concurrency, checkpoint-on-close, failure and recovery).
  • how_it_works.md (new) - internal mechanisms: COW/MVCC, on-disk layout, checkpoint protocol, GC / disk reclamation, legacy v1 migration.
  • explicit_transactions.mdx (new) - explicit-transaction usage and per-mode rules, split out of transaction.mdx.
  • Navigation updated for both Nextra (_meta.ts) and Sphinx (index.rst); section caption renamed to "Transaction & Checkpoint".

Notes

Docs-only; no code affected. All cross-links and anchors verified.

- Reorder transaction.mdx: modes/ACID/usage up front, advanced later
- Slim checkpoint.md; move internals to new how_it_works.md
- Split explicit transactions into explicit_transactions.mdx
- Update Nextra (_meta.ts) and Sphinx (index.rst) navigation
@zhanglei1949
zhanglei1949 requested review from longbinlai and a lite review from Copilot and removed request for longbinlai September 9, 2026 11:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Pull request overview

Restructures the transaction/checkpoint docs to be “user-first” by moving internal details into dedicated pages and splitting explicit-transaction usage into its own document.

Changes:

  • Reorganized transaction.mdx around deployment modes, ACID guarantees, usage, and best practices; moved historical/design material into an appendix.
  • Slimmed checkpoint.md to user-facing behavior; relocated internal layout/protocol details into a new internal page.
  • Added new pages for explicit transactions and internal mechanics; updated Nextra + Sphinx navigation.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
doc/source/transaction/transaction.mdx Major rewrite/reorder; adds ACID + usage-first structure and points to new dedicated pages.
doc/source/transaction/how_it_works.md New internal-mechanics page (COW/MVCC, on-disk layout, checkpoint protocol, GC, v1 migration).
doc/source/transaction/explicit_transactions.mdx New page extracting explicit transaction usage, rules, and per-mode details.
doc/source/transaction/checkpoint.md Removes deep internals; adds link to “How It Works” and keeps operational usage/concurrency/failure guidance.
doc/source/transaction/_meta.ts Adds navigation entries for the two new pages in the transaction section.
doc/source/index.rst Updates Sphinx toctree caption and includes the new transaction docs pages.
doc/source/_meta.ts Renames top-level nav label to “Transaction & Checkpoint”.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread doc/source/transaction/explicit_transactions.mdx
Comment thread doc/source/transaction/explicit_transactions.mdx
Comment thread doc/source/transaction/how_it_works.md Outdated
Comment thread doc/source/transaction/transaction.mdx

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are documentation-only, internally consistent across the updated pages, and navigation/link updates appear coherent based on repository references.

Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

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.

2 participants