# US 2025/0165454 A1 · Versioning of items in a data structure

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

- Number: US 2025/0165454 A1
- Document ID: US20250165454A1
- Status: Published application
- Kind: A1
- Application number: 19/032,439
- Filed: 2025-01-20
- Published: 2025-05-22
- Earliest claimed: 2021-06-28
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Aleksandar DRAGOJEVIC; Junyi LIU; Antonios KATSARAKIS
- Web page: https://patentgrep.com/patent/US20250165454A1

## CPC

- G06F 16/2308: {Concurrency control (transaction processing G06F9/466)}
- G06F 16/2329: {using versioning}
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system comprising: memory storing a data structure comprising a plurality of items, each item comprising a key-value pair; a writer arranged to perform a plurality of write operations each to write a respective item, either a new item being added to the data structure or an existing item being modified in the data structure; and a reader configured to perform a group-read operation to read from the data structure any items having keys in a specified range. The writer is configured to maintain a global write version and the reader is configured to maintain a global read version.

## Claims

### Claim 1

(canceled)

### Claim 2

A system comprising:
a memory storing a data structure;
a writer configured to perform a write operation to write a first item in the data structure by:
reading a global write version,
writing the first item in the data structure, including versioning the first item with a first version number equal to the global write version,
incrementing the global write version,
generating a release indicator indicating the first version number, and
sending a release signal corresponding to the release indicator; and
a reader configured to perform a read operation to read from the data structure a second item having a key in a specified range by:
receiving the release signal from the writer,
updating a global read version with the first version number, and
selectively reading the second item from the specified range of keys in the data structure, the second item having a second version number equal to or less than the global read version.

### Claim 3 (depends on 2)

The system of claim 2, wherein the reader is coupled to the writer via a bus and the writer is coupled to the memory via a connection that does not require communication via the bus.

### Claim 4 (depends on 2)

The system of claim 2, wherein the writer is implemented in software arranged to run on a processor of the system and the reader is implemented in a programmable gate array (PGA) or a field programmable gate array (FPGA).

### Claim 5 (depends on 2)

The system of claim 2, wherein the release signal sent by the writer corresponds to all version numbers lower than the first version number.

### Claim 6 (depends on 2)

The system of claim 2, wherein the writer is configured to refrain from sending release signals corresponding to any release indicator indicating a higher version number than the first version number.

### Claim 7 (depends on 2)

The system of claim 2, wherein the write operation to write the first item in the data structure comprises inserting the first item, modifying the first item, or deleting the first item in the data structure.

### Claim 8 (depends on 2)

The system of claim 2, wherein:
the data structure comprises a tree structure which comprises a plurality of nodes each having a node ID, with some nodes being leaf nodes and other nodes being internal nodes;
the writer is configured so as, when performing the write operation, to identify which leaf node to write to by following a mapping of keys to node IDs through the tree structure; and
the reader is configured so as, when performing the read operation, to determine which leaf node or nodes to read from by following the mapping of keys to node IDs through the tree structure to at least one of the leaf nodes.

### Claim 9

A method comprising:
performing, by a writer, a write operation to write a first item in a data structure by:
reading a global write version,
writing the first item in the data structure, including versioning the first item with a first version number equal to the global write version,
incrementing the global write version,
generating a release indicator indicating the first version number, and
sending a release signal corresponding to the release indicator; and
performing, by a reader, a read operation to read from the data structure a second item having a key in a specified range by:
receiving the release signal from the writer,
updating a global read version with the first version number, and
selectively reading the second item from the specified range of keys in the data structure, the second item having a second version number equal to or less than the global read version.

### Claim 10 (depends on 9)

The method of claim 9, wherein the data structure is stored in a memory, wherein the reader is coupled to the writer via a bus and the writer is coupled to the memory via a connection that does not require communication via the bus.

### Claim 11 (depends on 9)

The method of claim 9, wherein the writer is implemented in software arranged to run on a processor and the reader is implemented in a programmable gate array (PGA) or a field programmable gate array (FPGA).

### Claim 12 (depends on 9)

The method of claim 9, wherein the release signal sent by the writer corresponds to all version numbers lower than the first version number.

### Claim 13 (depends on 9)

The method of claim 9, wherein the writer is configured to refrain from sending release signals corresponding to any release indicator indicating a higher version number than the first version number.

### Claim 14 (depends on 9)

The method of claim 9, wherein the write operation to write the first item in the data structure comprises inserting the first item, modifying the first item, or deleting the first item in the data structure.

### Claim 15 (depends on 9)

The method of claim 9, wherein:
the data structure comprises a tree structure which comprises a plurality of nodes each having a node ID, with some nodes being leaf nodes and other nodes being internal nodes;
the writer is configured so as, when performing the write operation, to identify which leaf node to write to by following a mapping of keys to node IDs through the tree structure; and
the reader is configured so as, when performing the read operation, to determine which leaf node or nodes to read from by following the mapping of keys to node IDs through the tree structure to at least one of the leaf nodes.

### Claim 16

A computer program embodied on computer-readable storage, the computer program comprising code configured so as when run on a processor to perform operations comprising:
performing, by a writer, a write operation to write a first item in a data structure by:
reading a global write version,
writing the first item in the data structure, including versioning the first item with a first version number equal to the global write version,
incrementing the global write version,
generating a release indicator indicating the first version number, and
sending a release signal corresponding to the release indicator; and
performing, by a reader, a read operation to read from the data structure a second item having a key in a specified range by:
receiving the release signal from the writer,
updating a global read version with the first version number, and
selectively reading the second item from the specified range of keys in the data structure, the second item having a second version number equal to or less than the global read version.

### Claim 17 (depends on 16)

The computer program of claim 16, wherein the writer is implemented in software arranged to run on the processor and the reader is implemented in a programmable gate array (PGA) or a field programmable gate array (FPGA).

### Claim 18 (depends on 16)

The computer program of claim 16, wherein the release signal sent by the writer corresponds to all version numbers lower than the first version number.

### Claim 19 (depends on 16)

The computer program of claim 16, wherein the writer is configured to refrain from sending release signals corresponding to any release indicator indicating a higher version number than the first version number.

### Claim 20 (depends on 16)

The computer program of claim 16, wherein the write operation to write the first item in the data structure comprises inserting the first item, modifying the first item, or deleting the first item in the data structure.

### Claim 21 (depends on 16)

The computer program of claim 16, wherein:
the data structure comprises a tree structure which comprises a plurality of nodes each having a node ID, with some nodes being leaf nodes and other nodes being internal nodes;
the writer is configured so as, when performing the write operation, to identify which leaf node to write to by following a mapping of keys to node IDs through the tree structure; and
the reader is configured so as, when performing the read operation, to determine which leaf node or nodes to read from by following the mapping of keys to node IDs through the tree structure to at least one of the leaf nodes.
