Databases
52 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 1.31 InnoDB redo loghistorical
The redo log supports InnoDB crash recovery by restoring changes that were not fully written before a failure.
- 1.32 InnoDB undo loghistorical
The undo log records logical data changes with inverse operations for inserts, updates, and deletes. These notes explain its relationship to transactions.
- 1.33 InnoDB Transactionshistorical
InnoDB transactions begin with begin or start transaction and finish with commit or rollback. These notes cover transaction operations and their implementation.
- 1.34 InnoDB Tablespaceshistorical
Tablespaces are a logical way to organize InnoDB data. These notes explain storage through the relationships among tablespaces, segments, extents, and pages.
- 1.35 InnoDB and MyISAM Index Comparisonhistorical
InnoDB organizes data and indexes in pages. These notes use pages and B+ trees to compare InnoDB and MyISAM storage layouts.
- 1.36 MySQL InnoDBhistorical
InnoDB uses read and write buffering to reduce repeated disk access. These notes examine the engine's internal structure through those components.
- 1.37 MySQL Flushhistorical
A page is dirty when its contents in memory differ from those on disk. Flushing writes dirty pages to disk to bring them back into agreement.
- 2.PostgreSQLhistorical
This page links PostgreSQL query-analysis and transaction topics, including EXPLAIN, isolation levels, and MVCC.
- 2.1 PostgreSQL Isolation Levelshistorical
PostgreSQL distinguishes isolation levels through snapshot timing. These notes examine the differences through GetTransactionSnapshot and related implementation details.
- 2.2 PostgreSQL MVCChistorical
PostgreSQL MVCC: In PostgreSQL, every transaction gets a transaction ID called XID.