Repository navigation
Conversation
|
Probably, we should mention excluded tuples here as well. |
Author
|
@drewdzzz, @CuriousGeorgiy closed as I took onto myself too much to handle everything. Please tag me on another attempt to document this. |
Member
|
@mkostoevr I think it would be great even if we could merge any more or less sound WIP that you have. |
Member
|
Just to not lose this work, let's keep it open until we get back to it. |
mkostoevr
commented
Jun 10, 2025
mkostoevr
force-pushed
the
m.kostoev/tx_man
branch
from
October 27, 2026 16:14
a026957 to
a869d5c
Compare
mkostoevr
force-pushed
the
m.kostoev/tx_man
branch
from
November 11, 2026 22:07
a869d5c to
b4ba239
Compare
mkostoevr
force-pushed
the
m.kostoev/tx_man
branch
from
November 12, 2026 12:55
b4ba239 to
89f73fd
Compare
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.
mkostoevr
force-pushed
the
m.kostoev/tx_man
branch
from
November 12, 2026 13:45
89f73fd to
3205336
Compare
mkostoevr
marked this pull request as ready for review
November 19, 2026 07:20
This branch is being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.