# US 2025/0156391 A1 · Single-writer B-tree Architecture on Disaggregated Memory

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

- Number: US 2025/0156391 A1
- Document ID: US20250156391A1
- Status: Published application
- Kind: A1
- Application number: 18/508,730
- Filed: 2023-11-14
- Published: 2025-05-15
- Earliest claimed: 2023-11-14
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Zhaozhe Song; Pavan Edara; Bigang Li
- Web page: https://patentgrep.com/patent/US20250156391A1

## CPC

- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 13/1621: {by maintaining request order}
- G06F 13/1673: {using buffers}
- G06F 16/273: {Asynchronous replication or reconciliation}
- G06F 16/278: {Data partitioning, e.g. horizontal or vertical partitioning}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for a single writer B-tree architecture on disaggregated memory includes receiving a write request for a distributed database that requests the data processing hardware update the distributed database. The distributed database is indexed using a B-tree stored on a plurality of servers. Each server of the plurality of servers stores a portion of the B-tree. The method includes modifying, using the write request, a portion of a fixed-size buffer pool. The fixed-size buffer pool is stored at local memory of a primary server of the plurality of servers and corresponds to a portion of the B-tree. The method includes, in response to modifying the portion of the fixed-size buffer pool, writing, to a respective server of the plurality of servers that stores the corresponding portion of the B-tree, the modified portion of the fixed-size buffer pool.

## Claims

### Claim 1

A computer-implemented method executed by data processing hardware that causes the data processing hardware to perform operations comprising:
receiving a write request for a distributed database, the write request requesting the data processing hardware update the distributed database, the distributed database indexed using a B-tree, the B-tree stored on a plurality of servers, each server of the plurality of servers storing a portion of the B-tree;
modifying, using the write request, a portion of a fixed-size buffer pool, the fixed-size buffer pool stored at local memory of a primary server of the plurality of servers, the portion of the fixed-size buffer pool corresponding to a portion of the B-tree; and
in response to modifying the portion of the fixed-size buffer pool, writing, to a respective server of the plurality of servers that stores the corresponding portion of the B-tree, the modified portion of the fixed-size buffer pool.

### Claim 2 (depends on 1)

The method of claim 1, wherein writing the modified portion of the fixed-size buffer pool comprises using an in-memory cluster-level file system.

### Claim 3 (depends on 2)

The method of claim 2, wherein each write request maps to a single transaction of the in-memory cluster-level file system.

### Claim 4 (depends on 1)

The method of claim 1, wherein writing the modified portion of the fixed-size buffer pool comprises:
prior to writing the modified portion of the fixed-size buffer pool, determining that another pending write based on a second write request modified the same portion of the fixed-size buffer pool; and
based on determining that the other pending write modified the same portion of the fixed-size buffer pool, writing, to the respective server of the plurality of servers, the modified portion of the fixed-size buffer pool in an order based on an order the write request and the second write request were received.

### Claim 5 (depends on 1)

The method of claim 1, wherein writing the modified portion of the fixed-size buffer pool comprises:
prior to writing the modified portion of the fixed-size buffer pool, determining that another pending write based on a second write request modified a different portion of the fixed-size buffer pool; and
based on determining that the other pending write modified the different portion of the fixed-size buffer pool, writing, to the respective server of the plurality of servers, the modified portion of the fixed-size buffer pool in an order that is not based on an order the write request and the second write request were received.

### Claim 6 (depends on 1)

The method of claim 1, wherein writing the modified portion of the fixed-size buffer pool comprises:
prior to writing the modified portion of the fixed-size buffer pool, determining that another pending write based on a second write request modified the same portion of the fixed-size buffer pool; and
in response to determining that the other pending write modified the same portion of the fixed-size buffer pool, writing, to the respective server, the modified portion based on the write request and the modified portion based on the second write request simultaneously.

### Claim 7 (depends on 1)

The method of claim 1, wherein writing the modified portion of the fixed-size buffer pool comprises pushing a write for the modified portion of the fixed-size buffer pool into a first in first out (FIFO) data structure.

### Claim 8 (depends on 7)

The method of claim 7, wherein writing the modified portion of the fixed-size buffer pool further comprises generating, using each write stored in the FIFO, a dependency graph.

### Claim 9 (depends on 8)

The method of claim 8, wherein writing the modified portion of the fixed-size buffer pool further comprises batching multiple writes together based on the dependency graph.

### Claim 10 (depends on 1)

The method of claim 1, wherein the operations further comprise:
receiving a read request for the distributed database, the read request requesting the data processing hardware read data from the distributed database;
based on receiving the read request, retrieving, from a second subset of the plurality of servers, one or more portions of the B-tree;
storing the one or more portions of the B-tree at a second fixed-size buffer pool for the B-tree, the second fixed-size buffer pool stored at local memory of a secondary server of the plurality of servers, the second server different from the primary server; and
retrieving, using the second fixed-size buffer pool, the data.

### Claim 11

A system comprising:
data processing hardware; and
memory hardware in communication with the data processing hardware, the memory hardware storing instructions that when executed on the data processing hardware cause the data processing hardware to perform operations comprising:
receiving a write request for a distributed database, the write request requesting the data processing hardware update the distributed database, the distributed database indexed using a B-tree, the B-tree stored on a plurality of servers, each server of the plurality of servers storing a portion of the B-tree;
modifying, using the write request, a portion of a fixed-size buffer pool, the fixed-size buffer pool stored at local memory of a primary server of the plurality of servers, the portion of the fixed-size buffer pool corresponding to a portion of the B-tree; and
in response to modifying the portion of the fixed-size buffer pool, writing, to a respective server of the plurality of servers that stores the corresponding portion of the B-tree, the modified portion of the fixed-size buffer pool.

### Claim 12 (depends on 11)

The system of claim 11, wherein writing the modified portion of the fixed-size buffer pool comprises using an in-memory cluster-level file system.

### Claim 13 (depends on 12)

The system of claim 12, wherein each write request maps to a single transaction of the in-memory cluster-level file system.

### Claim 14 (depends on 11)

The system of claim 11, wherein writing the modified portion of the fixed-size buffer pool comprises:
prior to writing the modified portion of the fixed-size buffer pool, determining that another pending write based on a second write request modified the same portion of the fixed-size buffer pool; and
based on determining that the other pending write modified the same portion of the fixed-size buffer pool, writing, to the respective server of the plurality of servers, the modified portion of the fixed-size buffer pool in an order based on an order the write request and the second write request were received.

### Claim 15 (depends on 11)

The system of claim 11, wherein writing the modified portion of the fixed-size buffer pool comprises:
prior to writing the modified portion of the fixed-size buffer pool, determining that another pending write based on a second write request modified a different portion of the fixed-size buffer pool; and
based on determining that the other pending write modified the different portion of the fixed-size buffer pool, writing, to the respective server of the plurality of servers, the modified portion of the fixed-size buffer pool in an order that is not based on an order the write request and the second write request were received.

### Claim 16 (depends on 11)

The system of claim 11, wherein writing the modified portion of the fixed-size buffer pool comprises:
prior to writing the modified portion of the fixed-size buffer pool, determining that another pending write based on a second write request modified the same portion of the fixed-size buffer pool; and
in response to determining that the other pending write modified the same portion of the fixed-size buffer pool, writing, to the respective server, the modified portion based on the write request and the modified portion based on the second write request simultaneously.

### Claim 17 (depends on 11)

The system of claim 11, wherein writing the modified portion of the fixed-size buffer pool comprises pushing a write for the modified portion of the fixed-size buffer pool into a first in first out (FIFO) data structure.

### Claim 18 (depends on 17)

The system of claim 17, wherein writing the modified portion of the fixed-size buffer pool further comprises generating, using each write stored in the FIFO, a dependency graph.

### Claim 19 (depends on 18)

The system of claim 18, wherein writing the modified portion of the fixed-size buffer pool further comprises batching multiple writes together based on the dependency graph.

### Claim 20 (depends on 11)

The system of claim 11, wherein the operations further comprise:
receiving a read request for the distributed database, the read request requesting the data processing hardware read data from the distributed database;
based on receiving the read request, retrieving, from a second subset of the plurality of servers, one or more portions of the B-tree;
storing the one or more portions of the B-tree at a second fixed-size buffer pool for the B-tree, the second fixed-size buffer pool stored at local memory of a secondary server of the plurality of servers, the second server different from the primary server; and
retrieving, using the second fixed-size buffer pool, the data.
