# US 2023/0053707 A1 · Systems and Methods for Database Management Using Append-Only Storage Devices

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0053707 A1
- Document ID: US20230053707A1
- Status: Published application
- Kind: A1
- Application number: 17/954,702
- Filed: 2022-09-28
- Published: 2023-02-23
- Earliest claimed: 2017-12-29
- Assignees: Huawei Cloud Computing Technologies Co., Ltd.
- Applicants: Huawei Cloud Computing Technologies Co., Ltd.
- Inventors: Per-Ake Larson; Alexandre Depoutovitch
- Web page: https://patentgrep.com/patent/US20230053707A1

## CPC

- G06F 3/0607: {by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device}
- G06F 16/215: Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
- G06F 3/06: Digital input from, or digital output to, record carriers {, e.g. RAID, emulated record carriers or networked record carriers}
- G06F 3/064: {Management of blocks}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 12/0276: {Generational garbage collection}
- G06F 16/1805: {Append-only file systems, e.g. using logs or journals to store data}
- G06F 16/21: Design, administration or maintenance of databases
- G06F 16/23: Updating
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus is disclosed. The apparatus may be implemented in a database node or a storage node and includes one or more processors and memory storing instructions for causing the processor to perform a number of operations. Responsive to a page write request, the apparatus determines an identifier corresponding to the requested page, sends component blocks corresponding to the page to a storage node for appending to an append-only storage log of the storage node, receives the physical location of the stored component blocks, and associates the physical storage location of the stored component blocks with the logical identifier corresponding to the page.

## Claims

### Claim 1

A method comprising:
receiving, by an apparatus, a write request instructing appending a component block in a storage device, wherein the component block includes a delta over a most recent complete version of a page;
sending, by the apparatus to the storage device, the component block; and
receiving, by the apparatus from the storage device, information about a physical location of the component block appended to an append-only storage log in the storage device; and
recording, by the apparatus, an association between a logical identifier of the page and the information about the physical location of the component block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the component block is stored outside the most recent complete version of the page.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
receiving, by the apparatus, a read request for the page;
determining, by the apparatus, the information about the physical location of the component block based on the logical identifier of the page and the association;
retrieving, by the apparatus from the storage device, the component block using the information about the physical location of the component block;
retrieving, by the apparatus from the storage device, the most recent complete version of the page using the logical identifier of the page;
constructing, by the apparatus, a current version of the page based on the most recent complete version of the page and the component block; and
returning, by the apparatus, the current version of the page.

### Claim 4 (depends on 3)

The method of claim 3, wherein the component block and the most recent complete version of the page are retrieved in parallel.

### Claim 5 (depends on 3)

The method of claim 3, the constructing comprising:
constructing, by the apparatus, the current version of the page based on the most recent complete version of the page and a plurality of component blocks, the plurality of component blocks including the component block.

### Claim 6 (depends on 3)

The method of claim 3, further comprising:
deleting, by the apparatus, the most recent complete version of the page after the current version of the page is constructed.

### Claim 7 (depends on 1)

The method of claim 1, wherein the component block and the most recent complete version of the page coexist in the append-only storage log of the storage device for a period of time.

### Claim 8

An apparatus comprising:
at least one processor; and
a computer readable storage medium storing programming, the programming including instructions that, when executed by the at least one processor, cause the apparatus to perform:
receiving a write request instructing appending a component block in a storage device, wherein the component block includes a delta over a most recent complete version of a page;
sending, to the storage device, the component block; and
receiving, from the storage device, information about a physical location of the component block appended to an append-only storage log in the storage device; and
recording an association between a logical identifier of the page and the information about the physical location of the component block.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the component block is stored outside the most recent complete version of the page.

### Claim 10 (depends on 8)

The apparatus of claim 8, the instructions further causing the apparatus to perform:
receiving a read request for the page;
determining the information about the physical location of the component block based on the logical identifier of the page and the association;
retrieving, from the storage device, the component block using the information about the physical location of the component block;
retrieving, b from the storage device, the most recent complete version of the page using the logical identifier of the page;
constructing a current version of the page based on the most recent complete version of the page and the component block; and
returning the current version of the page.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the component block and the most recent complete version of the page are retrieved in parallel.

### Claim 12 (depends on 10)

The apparatus of claim 10, the constructing comprising:
constructing the current version of the page based on the most recent complete version of the page and a plurality of component blocks, the plurality of component blocks including the component block.

### Claim 13 (depends on 10)

The apparatus of claim 10, the instructions further causing the apparatus to perform:
deleting the most recent complete version of the page after the current version of the page is constructed.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the component block and the most recent complete version of the page coexist in the append-only storage log of the storage device for a period of time.

### Claim 15

A non-transitory computer-readable medium having instructions stored thereon that, when executed by an apparatus, cause the apparatus to perform operations, the operations comprising:
receiving a write request instructing appending a component block in a storage device, wherein the component block includes a delta over a most recent complete version of a page;
sending, to the storage device, the component block; and
receiving, from the storage device, information about a physical location of the component block appended to an append-only storage log in the storage device; and
recording an association between a logical identifier of the page and the information about the physical location of the component block.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the component block is stored outside the most recent complete version of the page.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, the operations further comprising:
receiving a read request for the page;
determining the information about the physical location of the component block based on the logical identifier of the page and the association;
retrieving, from the storage device, the component block using the information about the physical location of the component block;
retrieving, b from the storage device, the most recent complete version of the page using the logical identifier of the page;
constructing a current version of the page based on the most recent complete version of the page and the component block; and
returning the current version of the page.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the component block and the most recent complete version of the page are retrieved in parallel.

### Claim 19 (depends on 17)

The non-transitory computer-readable medium of claim 17, the constructing comprising:
constructing the current version of the page based on the most recent complete version of the page and a plurality of component blocks, the plurality of component blocks including the component block.

### Claim 20 (depends on 17)

The apparatus of claim 17, the operations further comprising:
deleting the most recent complete version of the page after the current version of the page is constructed.
