~/talk

MySQL replication deep dive, and ideas for PostgreSQL

Talkat PGConf.dev 2024 · 2024-05-28..05-31· [databases]
slides:none on file

Covers how MySQL writes a binary log (statement vs row formats and the mysqlbinlog decoder), how relay logs and IO/SQL threads move and apply entries, and how GTIDs let replicas compute missing transactions automatically. Explains the two‑phase commit between InnoDB redo/undo and the binary log, why fsync+exclusive binary‑log lock is the bottleneck, how group commit batches commits, and how parallel apply modes (commit‑order and rowset) reduce apply steps from 7 to 4 to 3 in the example.

AI-written summary · about

  1. 0:00Introduction to MySQL
  2. 1:14MySQL logging mechanisms
  3. 3:08Binary log implementation
  4. 7:38Row vs statement format
  5. 12:36Replication architecture
  6. 15:23Global transaction IDs
  7. 18:57Using GTIDs
  8. 23:52Two-phase commit
  9. 29:54Group commit optimization
  10. 30:46Commit order parallel apply
  11. 33:35Write set parallel apply
  12. 38:52Dependency graph example
  13. 42:40Q&A and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.