Skip to content

memtx_tx: add documentation page - #47

Open
mkostoevr wants to merge 8 commits into
masterfrom
m.kostoev/tx_man
Open

mkostoevr wants to merge 8 commits into
masterfrom
m.kostoev/tx_man

Conversation

@mkostoevr

@mkostoevr mkostoevr commented Jul 31, 2024 •

Copy link
Copy Markdown

Introduce a documentation page about internals of the transaction management in memtx. This includes information about entities and algorithms used and connection of these concepts with indexes.

The commits are to be feld into a single one.

@drewdzzz

drewdzzz commented Sep 9, 2024

Copy link
Copy Markdown

Probably, we should mention excluded tuples here as well.

@mkostoevr

Copy link
Copy Markdown
Author

@drewdzzz, @CuriousGeorgiy closed as I took onto myself too much to handle everything. Please tag me on another attempt to document this.

@mkostoevr mkostoevr closed this Jan 2, 2025
@CuriousGeorgiy

CuriousGeorgiy commented Jan 3, 2025 •

Copy link
Copy Markdown
Member

@mkostoevr I think it would be great even if we could merge any more or less sound WIP that you have.

@CuriousGeorgiy

CuriousGeorgiy commented Apr 29, 2025 •

Copy link
Copy Markdown
Member

Just to not lose this work, let's keep it open until we get back to it.

Comment thread source/memtx_tx.rst Resolved
Start a documentation page about MVCC in memtx with the problem it
solves: the conflict model, the breaker/victim resolution, and the
read-set, read-gap and write-set model.
Explain how an index read is tracked with a successor gap item, how a
range scan is split into a chain of nearby gaps, and how point lookups
that find nothing are stored in the point-hole table.
Describe how the write set is kept as a history of stories per index
entry, how links are created lazily, and how excluded entries produce
empty stories. Also explain the statement's links to the stories it
adds and deletes.
Add the read-tracker objects that connect a transaction's read set
with the story versions it has read.
Explain how a rolled-back statement is made invisible, including the
extra work for a prepared statement and the conflicts found on rollback.
Document the current DDL design: the schema-change mark, invalidation
of the old space, aborting its readers and writers, deleting its
stories, and rolling back statements whose stories are gone.
Explain the per-index map that turns a dirty snapshot entry into the
entry visible in a read view, including multikey duplicates,
functional-key lifetime, and the MVCC-off yielding DDL path.
Finish the page with the global tx_manager fields and the transactions
the manager finds through the objects they registered, plus the global
txns list used for statistics, DDL and teardown.
@CuriousGeorgiy CuriousGeorgiy removed their assignment Nov 12, 2026
@mkostoevr
mkostoevr marked this pull request as ready for review November 19, 2026 07:20

This branch is being deployed

1 in progress deployment
latest — 3205336d Deployed Nov 12, 2026 by github-actions[bot]
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.

3 participants