Method and system for highly-parallel logging and recovery operation in main-memory transaction processing systems
Abstract
An efficient logging method and system is disclosed that can be used to recover from a failure in a transaction system. It is based on a differential logging scheme that allows commutative and associative recovery operations. The method includes the steps of taking a before-image of the primary database in main memory before an update to the primary database; taking an after-image of the primary database after the update; generating a differential log by applying bit-wise exclusive-OR (XOR) between the before-image and the after-image; and performing either a redo or undo operation by applying XOR between said one or more logs and the before-image. Since XOR operations are commutative and associative, correct recovery is possible regardless of the creation sequence of log records. The present invention improves the performance of a logging system by reducing the size of log records and by allowing parallel execution of recovery operations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 50.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of logging and recovery in a transaction-processing system having a main memory for storing a database, wherein the database comprises a plurality of objects, any of which is denoted by b hereafter, one or more persistent backup storage devices for storing a copy of the database in the main memory, and one or more persistent log storage devices for storing log records, the logging method comprising: generating a differential log record using Δ t =b t−1 ⊕ b t where Δ t is the differential log record generated for the t-th update on a database object b, ⊕ is the bit-wise exclusive-OR
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 50 total)
References Cited — Backward Prior Art (10)
Non-Patent Literature (2)
- Blaum et al. EVENODD: an optimal scheme for tolerating double disk failure in RAID architectures, International Conference on Computer Architecture, 1994, p. 245-254.
- Hac et al. A new cell loss recovery method using forward error correction in ATM networks, Internation Journal of Network Managment, vol. 8, Mar.-Apr. 1998, p. 87-103.