Applying a database transaction log record directly to a database table container

US9811549B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9811549-B2
Application numberUS-201414552914-A
CountryUS
Kind codeB2
Filing dateNov 25, 2014
Priority dateNov 25, 2014
Publication dateNov 7, 2017
Grant dateNov 7, 2017

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Disclosed herein are system, method, and computer program product embodiments for directly restoring a database from a log volume. An embodiment operates by reading one or more database transaction log records from a log volume. The embodiment then loads from a database table persistent storage one or more pages containing rows in the database table that will be read from or written to by the one or more database transaction log records. The embodiment then loads a dictionary for each column associated with the one or more database transaction log records. The embodiment then applies the one or more database transaction log records directly into the one or more loaded pages and the one or more dictionaries. Each dictionary and page modified in memory is then written to the database table persistent storage when a savepoint operation is performed.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer implemented method for restoring a database from a log volume, comprising: reading, by one or more computing devices, a log record from the log volume, wherein the log record includes information for restoring a database transaction that is not savepointed to a persistent storage; interpreting, by the one or more computing devices, a page of a table in the database that is associated with the database transaction as a portion of an index vector that identifies one or more values in a column of the table, wherein the page is stored in the persistent storage; performing, by the one or more computing devices, a direct modification of the portion of the index vector and a dictionary based on the log record, wherein the dictionary is associated with the index vector; and applying, by the one or more computing devices, the database transaction to the database without replaying the log record as a query, wherein the applying comprises updating the table in the database on the persistent storage based on the modified portion of the index vector and the modified dictionary. 2. The method of claim 1 , further comprising: identifying the page of the table in the database on the persistent storage, wherein the page is associated with the database transaction. 3. The method of claim 1 , the performing the direct modification comprising: inserting a key in the portion of the index vector and the dictionary based on the database transaction; and inserting a value in the dictionary based on the database transaction. 4. The method of claim 1 , the performing the direct modification comprising: deleting a key in the portion of the index vector based on the database transaction. 5. The method of claim 1 , the performing the direct modification comprising: altering a key in the portion of the index vector based on the database transaction. 6. The method of claim 1 , wherein the dictionary represents the one or more values in the column of the table. 7. A system, comprising: a computer memory; and at least one processor coupled to the memory and configured to: read a log record from the log volume, wherein the log record includes information for restoring a database transaction that is not savepointed to a persistent storage; interpret a page of a table in the database that is associated with the database transaction as a portion of an index vector that identifies one or more values in a column of the table, wherein the page is stored in the persistent storage; perform a direct modification of the portion of the index vector and a dictionary based on the log record, wherein the dictionary is associated with the index vector; and apply the database transaction to the database without replaying the log record as a query, wherein the applying comprises updating the table in the database on the persistent storage based on the modified portion of the index vector and the modified dictionary. 8. The system of claim 7 , wherein the at least one processor is further configured to: identify the page of the table in the database on the persistent storage, wherein the page is associated with the database transaction. 9. The system of claim 7 , wherein to perform the direct modification of the portion of the index vector and the dictionary based on the database transaction, the at least one processor is configured to: insert a key in the portion of the index vector and the dictionary based on the database transaction; and insert a value in the dictionary based on the database transaction. 10. The system of claim 7 , wherein to perform the direct modification of the portion of the index vector and the dictionary based on the database transaction, the at least one processor is configured to: delete a key in the portion of the index vector based on the database transaction. 11. The system of claim 7 , wherein to perform the direct modification of the portion of the index vector and the dictionary based on the database transaction, the at least one processor is configured to: alter a key in the portion of the index vector based on the database transaction. 12. The system of claim 7 , wherein the dictionary represents the one or more values in the column of the table. 13. A non-transitory computer-readable device having instructions stored thereon that, when executed by at least one computing device, causes the at least one computing device to perform operations comprising: reading a log record from a log volume, wherein the log record includes information for restoring a database transaction that is not savepointed to a persistent storage; interpreting a page of a table in the database that is associated with the database transaction as a portion of an index vector that identifies one or more values in a column of the table, wherein the page is stored in the persistent storage; performing a direct modification of the portion of the index vector and a dictionary based on the log record, wherein the dictionary is associated with the index vector; and applying the database transaction to the database without replaying the log record as a query, wherein the applying comprises updating the table in the database on the persistent storage based on the modified portion of the index vector and the modified dictionary. 14. The non-transitory computer-readable device of claim 13 , further comprising: identifying the page of the table in the database on the persistent storage, wherein the page is associated with the database transaction. 15. The non-transitory computer-readable device of claim 13 , the performing the direct modification comprising: inserting a key in the portion of the index vector and the dictionary based on the database transaction; and inserting a value in the dictionary based on the database transaction. 16. The non-transitory computer-readable device of claim 13 , the performing the direct modification comprising: deleting a key in the portion of the index vector based on the database transaction. 17. The non-transitory computer-readable device of claim 13 , the performing the direct modification comprising: altering a key in the portion of the index vector based on the database transaction. 18. The non-transitory computer-readable device of claim 13 , wherein the dictionary represents the one or more values in the column of the table.

Assignees

Inventors

Classifications

  • Ensuring data consistency and integrity · CPC title

  • Change logging, detection, and notification (replication G06F16/27) · CPC title

  • Physics · mapped topic

  • Physics · mapped topic

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9811549B2 cover?
Disclosed herein are system, method, and computer program product embodiments for directly restoring a database from a log volume. An embodiment operates by reading one or more database transaction log records from a log volume. The embodiment then loads from a database table persistent storage one or more pages containing rows in the database table that will be read from or written to by the o…
Who is the assignee on this patent?
Schreter Ivan, Chen Shiping, Wein David, and 2 more
What technology area does this patent fall under?
Primary CPC classification G06F16/2365. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Nov 07 2017 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).