# US 2025/0156088 A1 · Replacing key-value pair sets with new key-value pair sets

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

- Number: US 2025/0156088 A1
- Document ID: US20250156088A1
- Status: Published application
- Kind: A1
- Application number: 19/027,008
- Filed: 2025-01-17
- Published: 2025-05-15
- Earliest claimed: 2022-11-28
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Gregory Alan BECKER; Alexander TOMLINSON
- Web page: https://patentgrep.com/patent/US20250156088A1

## CPC

- G06F 3/0622: {in relation to access}
- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In some implementations, a memory device may determine, from a list of key-value pair sets, a key-value pair set. The memory device may identify, from the key-value pair set selected from the list of key-value pair sets, a first key that is included in at least one other key-value pair set from the list of key-value pair sets. The memory device may identify, from the key-value pair set selected from the list of key-value pair sets, a second key that is not included in at least one other key-value pair set from the list of key-value pair sets. The memory device may form a new key-value pair set that excludes the first key and includes the second key. The memory device may replace the key-value pair set selected from the list of key-value pair sets with the new key-value pair set.

## Claims

### Claim 1

A method, comprising:
selecting a first list of key-value pair sets and a second list of key-value pair sets;
providing the first list of key-value pair sets and the second list of key-value pair sets to a merge loop process;
obtaining a first key-value pair and a second key-value pair from the merge loop process;
forming a new key-value pair set that excludes the first key-value pair and includes the second key-value pair in accordance with a set of rules; and
replacing the second list of key-value pair sets with the new key-value pair set.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
performing a garbage collection on a plurality of key-value pair sets to remove duplicate keys from the plurality of key-value pair sets, wherein the second list of key-value pair sets comprises garbage key-value pair sets replaced during the garbage collection.

### Claim 3 (depends on 1)

The method of claim 1, wherein key-value pair sets in the first list of key-value pair sets are newer than key-value pair sets in the second list of key-value pair sets.

### Claim 4 (depends on 1)

The method of claim 1, wherein the new key-value pair set excludes the first key-value pair in accordance with the set of rules based on the first key-value pair being included in the first list of key-value pair sets.

### Claim 5 (depends on 1)

The method of claim 1, wherein the new key-value pair set includes the second key-value pair in accordance with the set of rules based on the second key-value pair being included in the second list of key-value pair sets.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first list of key-value pair sets and the second list of key-value pair sets are associated with a log structured merge (LSM) tree of an LSM key-value database.

### Claim 7 (depends on 1)

The method of claim 1, wherein:
the first key-value pair is associated with a duplicate key and is able to be discarded when forming the new key-value pair set; and
the second key-value pair is kept when forming the new key-value pair set.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first list of key-value pair sets includes sparse key-value pair sets that are ordered by age, and wherein the sparse key-value pair sets include key-value pair sets that are newer than key-value pair sets in the second list of key-value pair sets.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
regenerating an index of sorted keys for the first list of key-value pair sets based on the second list of key-value pair sets being replaced with the new key-value pair set.

### Claim 10 (depends on 1)

The method of claim 1, wherein the new key-value pair set inherits value data from the first list of key-value pair sets and creates new value data for the second list of key-value pair sets.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
determining a first amount of key-value data from the second list of key-value pair sets that is used to form the new key-value pair set;
determining a second amount of key data from the first list of key-value pair sets that is used to form the new key-value pair set; and
determining a third amount of duplicate key-value data from the second list of key-value pair sets,
wherein the first list of key-value pair sets and the second list of key-value pair sets are selected based on the first amount, the second amount, and the third amount.

### Claim 12

A memory device, comprising:
one or more components configured to:
select a first list of key-value pair sets and a second list of key-value pair sets;
provide the first list of key-value pair sets and the second list of key-value pair sets to a merge loop process;
obtain a first key-value pair and a second key-value pair from the merge loop process;
form a new key-value pair set that excludes the first key-value pair and includes the second key-value pair in accordance with a set of rules; and
replace the second list of key-value pair sets with the new key-value pair set.

### Claim 13 (depends on 12)

The memory device of claim 12, wherein the one or more components are further configured to:
perform a garbage collection on a plurality of key-value pair sets to remove duplicate keys from the plurality of key-value pair sets, wherein the second list of key-value pair sets comprises garbage key-value pair sets replaced during the garbage collection.

### Claim 14 (depends on 12)

The memory device of claim 12, wherein key-value pair sets in the first list of key-value pair sets are newer than key-value pair sets in the second list of key-value pair sets.

### Claim 15 (depends on 12)

The memory device of claim 12, wherein the new key-value pair set excludes the first key-value pair in accordance with the set of rules based on the first key-value pair being included in the first list of key-value pair sets.

### Claim 16 (depends on 12)

The memory device of claim 12, wherein the new key-value pair set includes the second key-value pair in accordance with the set of rules based on the second key-value pair being included in the second list of key-value pair sets.

### Claim 17 (depends on 12)

The memory device of claim 12, wherein the first list of key-value pair sets and the second list of key-value pair sets are associated with a log structured merge (LSM) tree of an LSM key-value database.

### Claim 18 (depends on 12)

The memory device of claim 12, wherein:
the first key-value pair is associated with a duplicate key and is able to be discarded when forming the new key-value pair set; and
the second key-value pair is kept when forming the new key-value pair set.

### Claim 19 (depends on 12)

The memory device of claim 12, wherein the first list of key-value pair sets includes sparse key-value pair sets that are ordered by age, and wherein the sparse key-value pair sets include key-value pair sets that are newer than key-value pair sets in the second list of key-value pair sets.

### Claim 20

A system, comprising:
memory; and
a controller configured to:
select a first list of key-value pair sets and a second list of key-value pair sets;
provide the first list of key-value pair sets and the second list of key-value pair sets to a merge loop process;
obtain a first key-value pair and a second key-value pair from the merge loop process;
form a new key-value pair set that excludes the first key-value pair and includes the second key-value pair in accordance with a set of rules; and
replace the second list of key-value pair sets with the new key-value pair set.
