Index and view updates in a ledger-based database
AssigneeAmazon Technologies, Inc.
InventorsTate A. Certain, Yannis Papakonstantinou, Allan Henry Vermeulen, Christopher Richard Jacques de Kadt
Life of this patent
Estimating the term…
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.
Claims20
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.
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.
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.
Dependencies are inferred from the claim text.