# US 11,119,998 B1 · Index and view updates in a ledger-based database

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

- Number: US 11,119,998 B1
- Document ID: US11119998B1
- Status: Granted
- Kind: B1
- Application number: 16/200,595
- Filed: 2018-11-26
- Granted: 2021-09-14
- Earliest claimed: 2018-11-26
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Tate A. Certain; Yannis Papakonstantinou; Allan Henry Vermeulen; Christopher Richard Jacques de Kadt
- Web page: https://patentgrep.com/patent/US11119998B1

## CPC

- G06F 16/2272: {Management thereof}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A database management system stores data for a table using a ledger which comprises journal and summary portions. A query processor of the database identifies a first set of operations to update a document of a table in accordance with an update command. The query processor identifies a second set of operations to update tables or views that are potentially affected by the update to the document. The query processor then causes the first and second sets of operations to be executed as an atomic unit.

## Claims

### Claim 1

A system, comprising:
at least one processor; and
at least one memory that stores processor-executable instructions that, in response to being executed by the at least one processor, cause the system to at least:
receive a command to update a document of a table;
generate, by a query processor, a first plurality of operations that, when performed, update the document in accordance with the command;
identify an index and a view that is potentially affected by the first plurality of operations;
determine, by the query processor, a second plurality of operations that, when performed, update the identified index and view; and
cause the first and second pluralities of operations to be applied as an atomic unit.

### Claim 2 (depends on 1)

The system of claim 1, wherein the first and second pluralities of operations modify a plurality of storage structures on a plurality of storage devices.

### Claim 3 (depends on 1)

The system of claim 1, wherein a transaction coordinator confirms serializability of the first and second plurality of operations during the application of the first and second pluralities of operations as an atomic unit.

### Claim 4 (depends on 1)

The system of claim 1, wherein at least one of the first plurality of operations causes a journal entry to be appended to a journal of the table.

### Claim 5 (depends on 1)

The system of claim 1, wherein the query processor provides the first and second pluralities of writes to a transaction coordinator.

### Claim 6

A computer-implemented method, comprising:
determining, in response to a command to update a document of a table, a first plurality of operations to perform on the table, the first plurality of operations based at least in part on the command to update the document of the table;
identifying at least one of an index or a view associated with the first plurality of operations;
determining a second plurality of operations to perform on the identified at least one of the index or view; and
causing the first and second pluralities of operations to be applied as an atomic unit.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the first plurality of operations comprises at least one operation to append, to a journal, a journal record indicative of an update to the document.

### Claim 8 (depends on 6)

The computer-implemented method of claim 6, wherein the first plurality of operations comprises at least one operation to modify a summary of the table.

### Claim 9 (depends on 6)

The computer-implemented method of claim 6, wherein the first and second pluralities of operations are applied to a plurality of storage structures on a plurality of storage devices.

### Claim 10 (depends on 6)

The computer-implemented method of claim 6, wherein serializability of the first and second pluralities of operations are checked during application of the first and second operations, in accordance with an optimistic concurrency model.

### Claim 11 (depends on 6)

The computer-implemented method of claim 6, wherein the second plurality of operations comprises an operation to append, to a journal, an entry indicative of an update to a view.

### Claim 12 (depends on 6)

The computer-implemented method of claim 6, wherein a query processor provides the first and second pluralities of operations to a transaction coordinator for application.

### Claim 13 (depends on 6)

The computer-implemented method of claim 6, where the table is stored as a ledger comprising at least one journal and at least one summary.

### Claim 14

A non-transitory computer-readable storage medium having stored thereon executable instructions that, as a result of being executed by one or more processors of a computer system, cause the computer system to at least:
determine, in response to a command to update a document of a table, a first plurality of operations to apply to the table, the first plurality of operations based at least in part on the command to update the document of the table;
identify at least one of an index or a view associated with the first plurality of operations;
determine a second plurality of operations to apply to the at least one of the index or view; and
cause the first and second pluralities of operations to be applied as an atomic unit.

### Claim 15 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein the executable instructions further comprise instructions that, as a result of being executed by the one or more processors, cause the computer system to at least retrieve, from a storage structure of a summary, information indicative of a conflict between at least one of the first and second pluralities of operations and a prior transaction.

### Claim 16 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein the first plurality of operations comprises at least one operation to append data indicative of the update to the document to a journal.

### Claim 17 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein the first plurality of operations comprises at least one operation to modify a summary of the table.

### Claim 18 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein the first and second pluralities of operations are applied to a plurality of storage structures on a plurality of storage devices.

### Claim 19 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein the first and second pluralities of operations are applied in accordance with optimistic concurrency.

### Claim 20 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein data for the table is stored in at least one journal and at least one summary indicative of a sum of all transactions stored in the journal.
