Database log performance

US12373420B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12373420-B2
Application numberUS-202218053033-A
CountryUS
Kind codeB2
Filing dateNov 7, 2022
Priority dateJun 16, 2021
Publication dateJul 29, 2025
Grant dateJul 29, 2025

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.

A computer-implemented method improves the performance of write ahead logging. The method includes generating a set of query data and a set of log data, where the set of log data is configured to create a write ahead log, and the set of query data is configured to make changes to data in a database. The method also includes writing the set of query data to a virtual file system. The method further includes separating the set of log data into a set of control intervals, where each control interval includes an entry. The method includes writing, each entry into a log buffer, where the writing the set of query data to the virtual file system and the writing each entry into the log buffer are performed in parallel. The method also includes combining each entry into a complete log.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method comprising: generating a set of log data for a query, wherein the generating is configured to create a write ahead log for the query prior to the query making changes in a database, the query is configured to make changes to data in the database, and the creating the write ahead log further comprises: writing a set of query data for the query into a virtual file system in parallel with the writing the set of log data in a log buffer; separating the set of log data into a set of control intervals, wherein each control interval includes an entry for an address and an action of the query and each control interval is associated with a corresponding portion of the log buffer; writing, in response to the separating, the set of log data into the log buffer, wherein the log buffer includes a first log buffer and a second log buffer and the writing into the first log buffer and the second log buffer occurs in parallel; and combining, in response to the writing, the set of log data from the first log buffer and the second log buffer into a complete log. 2. The computer-implemented method of claim 1 , wherein the first log buffer includes a first log, and the second log buffer includes a second log. 3. The computer-implemented method of claim 2 , wherein each entry in the first log buffer is transferred into the first log, and each entry in the second log buffer is transferred into the second log. 4. The computer-implemented method of claim 2 , wherein each entry includes a sequence marker, wherein the sequence marker indicates a relative order of operations of the query that are performed. 5. The computer-implemented method of claim 4 , wherein the combining of each entry into the complete log further comprises re-sequencing, based on the sequence marker for each entry, all entries into the relative order of operations of the query. 6. The computer-implemented method of claim 5 , further comprising: storing the complete log on a disk; and updating, in response to storing the complete log on the disk, data in the database based on the query data. 7. The computer-implemented method of claim 2 , wherein each entry includes a parent object identifier. 8. The computer-implemented method of claim 1 , wherein the writing of the log data into the log buffer is configured to reduce a number of copies of the log data. 9. The computer-implemented method of claim 1 , wherein each entry uses a parent object identifier to identify an associated database object. 10. The method of claim 1 , further comprising: updating the database, wherein the update occurs after the writing the set of log data into the log buffer and before the combining the set of log data into the complete log. 11. A system comprising: a processor; a database; a write ahead log that includes two or more log buffers and the write ahead log is configured to write entries into the two or more log buffers in parallel; and a computer-readable storage medium communicatively coupled to the processor and storing program instructions which, when executed by the processor, are configured to cause the processor to: generate a set of log data from a query, wherein the query is configured to make updates to data in a database, wherein the generating is configured to create the write ahead log prior to the query applying the updates to the database, and wherein the program instructions for creating the write ahead log further comprise program instructions to: write a set of query data for the query into a virtual file system in parallel with the writing the set of log data into the two or more log buffers; separate the set of log data into a set of control intervals, wherein each control interval includes an entry for an address and an action of the query and each control interval is associated with a corresponding portion of a log buffer; write, in response to the separating, the set of log data into the log buffer, wherein the writing into the two or more log buffers occurs in parallel; and combine, in response to the writing the set of log data from a first log buffer and a second log buffer into the log buffer, the set of log data into a complete log. 12. The system of claim 11 , wherein the first log buffer includes a first log where each entry in the first log buffer is transferred into the first log, and the second log buffer includes a second log where each entry in the second log buffer is transferred into the second log. 13. The system of claim 12 , wherein each entry includes a sequence marker, wherein the sequence marker indicates a relative order of operations of the query are performed. 14. The system of claim 13 , wherein the combining of each entry into the complete log further comprises re-sequencing into the relative order of operations of the query based on the sequence marker for each entry. 15. A computer program product, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processing unit to cause the processing unit to: generate a set of log data for a query, wherein the set of log data is configured to create a write ahead log, and the query is configured to make changes to data in a database; separate the set of log data into a set of control intervals, wherein each control interval includes an entry for an address and an action of the query and each control interval is associated with a corresponding portion of a log buffer; write the set of log data into the log buffer, wherein the log buffer includes a first log buffer and a second log buffer and the writing into the first log buffer and the second log buffer occurs in parallel and writing a set of query data for the query into a virtual file system occurs in parallel with the writing the set of log data into the log buffer; and combine, in response to the writing the set of log data from the first log buffer and the second log buffer into the log buffer, the set of log data into a complete log. 16. The computer program product of claim 15 , wherein the first log buffer includes a first log where each entry in the first log buffer is transferred into the first log, and the second log buffer includes a second log where each entry in the second log buffer is transferred into the second log. 17. The computer program product of claim 16 , wherein each entry includes a sequence marker, wherein the sequence marker indicates a relative order of operations of the query are performed. 18. The computer program product of claim 17 , wherein the combining of each entry into the complete log further comprises re-sequencing into the relative order of operations of the query based on the sequence marker for each entry.

Assignees

Inventors

Classifications

  • Virtual file systems · CPC title

  • File search processing · CPC title

  • Ensuring data consistency and integrity · CPC title

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

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 US12373420B2 cover?
A computer-implemented method improves the performance of write ahead logging. The method includes generating a set of query data and a set of log data, where the set of log data is configured to create a write ahead log, and the set of query data is configured to make changes to data in a database. The method also includes writing the set of query data to a virtual file system. The method furt…
Who is the assignee on this patent?
IBM
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 Jul 29 2025 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 11 related publications on this page (citations in our corpus or others sharing the same primary CPC).