# US 2025/0094351 A1 · Hold-aside buffer for uncommitted write transactions in a log structured key-value database

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

- Number: US 2025/0094351 A1
- Document ID: US20250094351A1
- Status: Published application
- Kind: A1
- Application number: 18/968,771
- Filed: 2024-12-04
- Published: 2025-03-20
- Earliest claimed: 2022-06-14
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Alexander Tomlinson; Gaurav Sanjay Ramdasi; Gregory Alan Becker
- Web page: https://patentgrep.com/patent/US20250094351A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 2212/1016: Performance improvement
- G06F 2212/163: Server or database system
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An event trigger to flush key-value data from a volatile memory device is detected. In response to detection of the event trigger, a determination is made whether the key-value data comprises uncommitted data for one or more active database transactions. If the key-value data comprises uncommitted data for one or more active database transactions, the uncommitted data is moved to a hold aside buffer in the volatile memory device, and committed data in the key-value data is stored on a non-volatile memory device.

## Claims

### Claim 1

A system comprising:
a volatile memory device;
a non-volatile memory device; and
a processing device, operatively coupled with the volatile memory device and non-volatile memory device, configured to perform operations comprising:
executing a series of database transactions;
determining that at least one database transaction of the series of database transactions has committed; and
moving first key-value data associated with the at least one database transaction from a hold-aside buffer in the volatile memory device to the non-volatile memory device, wherein second key-value data associated with at least one other uncommitted database transaction remains in the hold-aside buffer.

### Claim 2 (depends on 1)

The system of claim 1, wherein key-value data is maintained in a log-structured merge (LSM) tree comprising a plurality of hierarchical storage levels across the volatile memory device and the non-volatile memory device.

### Claim 3 (depends on 2)

The system of claim 2, wherein the processing device is configured to perform operations further comprising:
merging the first key-value data with third key-value data associated with at least one other committed database transaction and stored in a first storage level of the LSM tree on the volatile memory device; and
storing the first key-value data and the third key-value data in a second storage level of the LSM tree on the non-volatile memory device.

### Claim 4 (depends on 3)

The system of claim 3, wherein the processing device is configured to perform operations further comprising:
detecting an event trigger to flush key-value data from the first storage level of the LSM tree to the second level of the LSM tree; and
moving the first key-value data and the second key-value data from the first storage level of the LSM tree to the hold-aside buffer in the volatile memory device.

### Claim 5 (depends on 4)

The system of claim 4, wherein the at least one database transaction and the at least one other uncommitted database transaction are uncommitted when the event trigger is detected.

### Claim 6 (depends on 5)

The system of claim 5, wherein the at least one database transaction is committed after the event trigger is detected and after the first key-value data is moved to the hold-aside buffer.

### Claim 7 (depends on 1)

The system of claim 1, wherein the processing device is configured to perform operations further comprising:
executing a garbage collection operation on the hold-aside buffer moving the first key-value data to the non-volatile memory device.

### Claim 8

A method comprising:
executing a series of database transactions;
determining that at least one database transaction of the series of database transactions has committed; and
moving first key-value data associated with the at least one database transaction from a hold-aside buffer in a volatile memory device to a non-volatile memory device, wherein second key-value data associated with at least one other uncommitted database transaction remains in the hold-aside buffer.

### Claim 9 (depends on 8)

The method of claim 8, wherein key-value data is maintained in a log-structured merge (LSM) tree comprising a plurality of hierarchical storage levels across the volatile memory device and the non-volatile memory device.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
merging the first key-value data with third key-value data associated with at least one other committed database transaction and stored in a first storage level of the LSM tree on the volatile memory device; and
storing the first key-value data and the third key-value data in a second storage level of the LSM tree on the non-volatile memory device.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
detecting an event trigger to flush key-value data from the first storage level of the LSM tree to the second level of the LSM tree; and
moving the first key-value data and the second key-value data from the first storage level of the LSM tree to the hold-aside buffer in the volatile memory device.

### Claim 12 (depends on 11)

The method of claim 11, wherein the at least one database transaction and the at least one other uncommitted database transaction are uncommitted when the event trigger is detected.

### Claim 13 (depends on 12)

The method of claim 12, wherein the at least one database transaction is committed after the event trigger is detected and after the first key-value data is moved to the hold-aside buffer.

### Claim 14 (depends on 8)

The method of claim 8, further comprising:
executing a garbage collection operation on the hold-aside buffer moving the first key-value data to the non-volatile memory device.

### Claim 15

A non-transitory computer-readable storage medium storing instructions which, when executed by a processing device, cause the processing device to perform operations comprising:
executing a series of database transactions;
determining that at least one database transaction of the series of database transactions has committed; and
moving first key-value data associated with the at least one database transaction from a hold-aside buffer in a volatile memory device to a non-volatile memory device, wherein second key-value data associated with at least one other uncommitted database transaction remains in the hold-aside buffer.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein key-value data is maintained in a log-structured merge (LSM) tree comprising a plurality of hierarchical storage levels across the volatile memory device and the non-volatile memory device.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the instructions cause the processing device to perform operations further comprising:
merging the first key-value data with third key-value data associated with at least one other committed database transaction and stored in a first storage level of the LSM tree on the volatile memory device; and
storing the first key-value data and the third key-value data in a second storage level of the LSM tree on the non-volatile memory device.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the instructions cause the processing device to perform operations further comprising:
detecting an event trigger to flush key-value data from the first storage level of the LSM tree to the second level of the LSM tree; and
moving the first key-value data and the second key-value data from the first storage level of the LSM tree to the hold-aside buffer in the volatile memory device.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the at least one database transaction and the at least one other uncommitted database transaction are uncommitted when the event trigger is detected.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, wherein the at least one database transaction is committed after the event trigger is detected and after the first key-value data is moved to the hold-aside buffer.
