How Transaction Information Aids Recovery

The SAP Sybase IQ recovery mechanism is designed for a data warehouse enivronment, in which, typically, transactions are few but lengthy.

SAP Sybase IQ performs database updates on a copy of the actual database page, and then writes the data to disk whenever a write transaction commits. SAP Sybase IQ also records: When you need to recover your database, SAP Sybase IQ restores quickly from the information in the transaction log and the checkpoint information. It uses the information about versions and free space to roll back transactions, and to release the disk space occupied by obsolete versions.

The transaction log requires very little space: only about 128 bytes for each committed transaction. The space requirements for checkpoint and disk space availability information are also very small. However, in systems with a high number of transactions that change data, the transaction log can grow to be very large, requiring periodic truncation.

The checkpoint information is deleted at the next checkpoint. Information related to particular savepoints is deleted when the savepoint is released or rolled back.