Suche Bilder Maps Play YouTube News Gmail Drive Mehr »
Erweiterte Patentsuche | Abbildungen der Seite | Webprotokoll | Anmelden

Patente

  

US 20020116404A1

(19) United States

(12) Patent Application Publication (io) Pub. No.: US 2002/0116404 Al

Cha et al. (43) Pub. Date: Aug. 22,2002

(54) METHOD AND SYSTEM FOR

HIGHLY-PARALLEL LOGGING AND
RECOVERY OPERATION IN
MAIN-MEMORY TRANSACTION
PROCESSING SYSTEMS

(75) Inventors: Sang Kyun Cha, Seoul (KR); Ju
Chang Lee, Kyonggi-do (KR); Ki
Hong Kim, Seoul (KR)

Correspondence Address:
FLESHNER & KIM
P.O. Box 221200
Chantilly, VA 20153-1200 (US)

(73) Assignee: Transact In Memory, Inc.

(21) Appl. No.: 09/768,301

(22) Filed: Jan. 25, 2001

(30) Foreign Application Priority Data

Jun. 7, 2000 (KR) 2000/31166

Publication Classification

(51) Int. CI.7 G06F 17 30

(52) U.S. CI 707/202; 707/204

(57) ABSTRACT

An efficient logging method and system is disclosed that can be used to recover from a lailure 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.

[merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][table][merged small][merged small]
[merged small][merged small][merged small][merged small][graphic]

FIG. 2

START
I

Read the most recent backup of the
database in memory
(BR: Backup Read)

I

Restore the database from the backup to the state as of the time when the backup was made (BP: Backup Play)

Read log records in memory I onQ

(LR: Log Read) 'h203

I

Restore the consistent state at the time of

crash f~204 (LP: Log Play)

FIG. 3A

c

START

D

Read the checkpointing start record, whose
location is stored in the log anchor

Initialize a loser transaction table (LTT) with the active transactions recored in the checkpointing start record

•301

[graphic][merged small][merged small][graphic]
« ZurückWeiter »