Optimization of log record application during database recovery
Abstract
A captured sequence of log records for a copy of a database may be inspected to identify an obviating log record at a captured sequence position of the captured sequence and related to a page of the plurality of pages, the obviating log record corresponding to an obviating change that replaces an earlier change of an earlier log record. The captured sequence of log records may be sorted into an applied sequence of log records for applying changes of the sequence of changes, in which the obviating log record is moved from the captured sequence position to an applied sequence position that is prior to the earlier sequence position of the earlier log record. The database may then be recovered using the applied sequence of log records.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A computer program product including a non-transitory computer-readable storage medium storing instructions that, when executed by at least one computing device, are configured to cause the at least one computing device to: identify, for a database recovery, a copy for a database, the copy being stored at a first time as a plurality of pages; identify a captured sequence of log records, the captured sequence of log records being captured between the first time and a second time and corresponding to a sequence of changes made to the database between the first time and the second time, with each log record of the captured sequence of log records corresponding to a change of the sequence of changes; identify, in the captured sequence of log records, an obviating log record at a captured sequence position of the captured sequence of log records and related to a page of the plurality of pages, the obviating log record corresponding to an obviating change that replaces an earlier change of a
- Claim 2Depends on #1
The computer program product of claim 1, wherein the copy is a copy of an index of the database.
- Claim 3Depends on #1
The computer program product of claim 1, wherein the instructions are further configured to cause the at least one computing device to: classify each log record of the captured sequence of log records as either a full page log record affecting full page content or as a partial page log record affecting a portion of page content of a corresponding page of the plurality of pages.
- Claim 4Depends on #1
The computer program product of claim 1, wherein the instructions are further configured to cause the at least one computing device to: identify the obviating log record as corresponding to a full page log record affecting full page content of a corresponding page of the plurality of pages.
- Claim 5Depends on #1
The computer program product of claim 1, wherein the instructions are further configured to cause the at least one computing device to: sort the captured sequence of log records by page of the plurality of pages.
- Claim 6Depends on #1
The computer program product of claim 1, wherein the instructions are further configured to cause the at least one computing device to: select a selected page of the plurality of pages of the captured sequence of log records; and classify corresponding log records for the selected page as either a full page log record affecting full page content of the selected page or as a partial page log record affecting a portion of page content of the selected page.
- Claim 7Depends on #6
The computer program product of claim 6, wherein the instructions are further configured to cause the at least one computing device to: sort one or more full page log records of the selected page in descending log record sequence order within the applied sequence of log records to identify a first full page log record of the sorted one or more full page log records as the obviating log record.
- Claim 8Depends on #7
The computer program product of claim 7, wherein the instructions are further configured to cause the at least one computing device to: sort partial page log records of the selected page in ascending log record sequence order, following the one or more full page log records, within the applied sequence of log records.
Technical Overview & Description
TECHNICAL FIELD This description relates to database management. BACKGROUND Database technology enables storage, analysis, and retrieval of data. For example, database servers, database management systems, and database languages may be used to store records in a structured manner, insert or delete records, and query available records to retrieve desired information. Many different types of computer software applications may utilize and benefit from such database technology. For example, applications across many different industries, such as ecommerce, finance (e.g., banking), network security, telecommunications, oil and gas, energy, government, education, manufacturing, or healthcare may all detect, generate, and/or store vast amounts of data particular to the context (e.g., industry) of each application. Given the scale and criticality of such data, database systems typically include or utilize recovery techniques to guard against loss of data, maintain data integrity, and ensure efficient use of resources. Such recovery techniques, however, may themselves consume significant time and resources. SUMMARY According to one general aspect, a computer program product may be tangibly embodied on a non-transitory computer-readable storage medium and may include instructions. When executed by at least one computing device, the instructions may be configured to cause the at least one computing device to identify, for a database recovery, a copy for a database, the copy being stored at a first time as a plurality of pages. The instructions, when executed, may be further configured to cause the at least one computing device to identify a captured sequence of log records, the captured sequence of log records being captured between the first time and a second time and corresponding to a sequence of changes made to the database between the first time and the second time, with each log record of the captured sequence of log records corresponding to a change of the sequence of ch
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (13)
| Patent | Title | Year | Citations |
|---|