Write-ahead logging

Write-ahead logging Algorithms for Recovery and Isolation Exploiting Semantics - Detailed Pedia

...Create log records of the form (Sequence Number, Transaction ID, Page ID, Redo, Undo, Previous Sequence Number)...

PostgreSQL includes built-in binary replication based on shipping the changes (write-ahead logs (WAL)) to replica nodes asynchronously, with the ability to run read-only queries against these replicated nodes. This allows splitting read traffic among multiple nodes efficiently...

MySQL 中的WAL机制 | mysql

Write-Ahead Logging | Database File Format (sqlite.org)

4. The Write-Ahead Log

Beginning with version 3.7.0 (2010-07-21), SQLite supports a new transaction control mechanism called "write-ahead log" or "WAL". When a database is in WAL mode, all connections to that database must use the WAL. A particular database will use either a rollback journal or a WAL, but not both at the same time. The WAL is always located in the same directory as the database file and has the same name as the database file but with the string "-wal" appended.

4.1. WAL File Format

A WAL file consists of a header followed by zero or more "frames". Each frame records the revised content of a single page from the database file. All changes to the database are recorded by writing frames into the WAL. Transactions commit when a frame is written that contains a commit marker. A single WAL can and usually does record multiple transactions. Periodically, the content of the WAL is transferred back into the database file in an operation called a "checkpoint".

分库分表中间件有很多。不知有没有这样做的:同时使用PostgresSQL和MySQL(各独占一台服务器),中间件两个都写,只从一个读。

posted @   Fun_with_Words  阅读(30)  评论(0编辑  收藏  举报
(评论功能已被禁用)
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
历史上的今天:
2022-01-17 A Child's History of England.161
2022-01-17 A Child's History of England.160
2022-01-17 A Child's History of England.159
2022-01-17 A Child's History of England.158
2022-01-17 A Child's History of England.157
2022-01-17 A Child's History of England.156
2022-01-17 aptitude









 和4张牌。

点击右上角即可分享
微信分享提示