# US 2025/0165456 A1 · Predictive concurrency control protocol for distributed databases

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

- Number: US 2025/0165456 A1
- Document ID: US20250165456A1
- Status: Published application
- Kind: A1
- Application number: 18/949,282
- Filed: 2024-11-15
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Assignees: Regatta Data Ltd.
- Applicants: Regatta Data Ltd.
- Inventors: Erez WEBMAN; Irit YADIN-LEMPEL; Nitzan ZAMIR; Roy Zeev GOLDSTEIN
- Web page: https://patentgrep.com/patent/US20250165456A1

## CPC

- G06F 16/2336: {Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps}
- G06F 16/2315: {Optimistic concurrency control}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method may include receiving a statement that is a part of a transaction; determining if the received statement includes at least one predicate; when the received statement includes at least one predicate, performing, for each of the at least one predicate: identifying at least one table-node participating in the execution of a task associated with the received statement; instantiating, by each of the at least one table-node, a conditional read vector (RV)-entry for the at least one predicate; executing the task included in the received statement; and upon receiving a commit statement that is part of the transaction, returning to a client an acknowledgment that the transaction is committed, where the acknowledgment is returned upon validation of the transaction, and where during validation of the transaction, reading-transactions conflicting with the transaction are detected using at least conditional RV-entries instantiated by the at least one table-node.

## Claims

### Claim 1

A method for managing execution of database transactions in a distributed database system, comprising:
receiving a statement that is a part of a transaction;
determining if the received statement includes at least one predicate;
when the received statement includes at least one predicate, performing, for each of the at least one predicate:
identifying at least one table-node participating in the execution of a task associated with the received statement;
instantiating, by each of the at least one table-node, a conditional read vector (RV)-entry for the at least one predicate;
executing the task included in the received statement, wherein the task includes evaluation of the predicate; and
upon receiving a commit statement that is part of the transaction,
returning to a client an acknowledgment that the transaction is committed, wherein the acknowledgment is returned upon validation of the transaction, and wherein during validation of the transaction, reading-transactions conflicting with the transaction are detected using at least conditional RV-entries instantiated by the at least one table-node.

### Claim 2 (depends on 1)

The method of claim 1, wherein the transaction is initiated by the client.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
allowing the transaction to commit before any conflicting reading-transactions, when validation conditions are met.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
identifying the at least one table-node for the predicate in the received statement, wherein the at least one table-node includes any one of: a covered-node and an uncovered-node.

### Claim 5 (depends on 4)

The method of claim 4, wherein the at least one table-node is an uncovered-node, the method further comprises:
instantiating a conditional RV-entry in the uncovered-node.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
scanning write vectors to identify conflicting writing-transactions and their respective agents, wherein an agent is instantiated on a node executing a writing-transaction; and
for each identified conflicting writing-transaction, notifying the conflicting write-transaction agent for validation.

### Claim 7

The method of claim of 4, wherein the at least one table-node is a covered node, the method further comprises:
instantiating an RV-entry; and
performing reading operations in the covered-node.

### Claim 8 (depends on 7)

The method of claim 7, performing the reading operations further comprises:
adding in the covered-node any one of a non-conditional RV-entry and a conditional RV-entry;
scanning write vectors to identify conflicting writing-transactions and their respective agents, wherein an agent is instantiated on a node executing a write-transaction;
for each identified conflicting writing-transaction, notifying the conflicting write-transaction agent for validation; and
reading the data cells.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
when a commit pause is taken, pausing notification on validation until the commit pause is released.

### Claim 10

The method of claim of 1, wherein the conditional RV-entry represents a predicate evaluation of the at least one predicate on data-cell sets stored in the at least one table-node.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
applying an epsilon checking procedure to evaluate each of the at least one predicate on a data-cell set to determine if an epsilon principle is satisfied, wherein the epsilon checking procedure evaluates values of a predicate on a data-cell set immediately before and immediately after committing the transaction.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
issuing an active protective declaration for a predicate of a data-cell set for which the epsilon principle is satisfied; and
issuing an inactive conditionally-dependent protective declaration for a predicate of a data-cell set for which the epsilon principle is not satisfied.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
committing the transaction immediately after placing a commit pause on data cells modified by the transaction.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
releasing the commit pause, conditional RV-entries, non-conditional RV-entries, non-conditional dependencies, and protective declarations.

### Claim 15 (depends on 1)

The method of claim 1, wherein tasks in the transaction are executed in an optimistic manner, and wherein the transaction is validated in a pessimistic manner.

### Claim 16

A non-transitory computer-readable medium storing a set of instructions for managing execution of database transactions in a distributed database system, the set of instructions comprising:
one or more instructions that, when executed by one or more processors of a device, cause the device to:
receive a statement that is a part of a transaction determine if the received statement includes at least one predicate when the received statement includes at least one predicate, perform, for each of the at least one predicate:
identify at least one table-node participating in the execution of a task associated with the received statement
instantiate, by each of the at least one table-node, a conditional read vector (RV)-entry for the at least one predicate
execute the task included in the received statement, wherein the task includes evaluation of the predicate; and
upon receiving a commit statement that is part of the transaction
return to a client an acknowledgment that the transaction is committed, wherein the acknowledgment is returned upon validation of the transaction, and wherein during validation of the transaction, reading-transactions conflicting with the transaction are detected using at least conditional RV-entries instantiated by the at least one table-node.

### Claim 17

A system for managing execution of database transactions in a distributed database system comprising:
one or more processors configured to:
receive a statement that is a part of a transaction
determine if the received statement includes at least one predicate
when the received statement includes at least one predicate, perform, for each of the at least one predicate:
identify at least one table-node participating in the execution of a task associated with the received statement
instantiate, by each of the at least one table-node, a conditional read vector (RV)-entry for the at least one predicate
execute the task included in the received statement, wherein the task includes evaluation of the predicate; and
upon receiving a commit statement that is part of the transaction
return to a client an acknowledgment that the transaction is committed, wherein the acknowledgment is returned upon validation of the transaction, and wherein during validation of the transaction, reading-transactions conflicting with the transaction are detected using at least conditional RV-entries instantiated by the at least one table-node.

### Claim 18 (depends on 17)

The system of claim 17, wherein the transaction is initiated by the client.

### Claim 19 (depends on 17)

The system of claim 17, wherein the one or more processors are further configured to:
allow the transaction to commit before any conflicting reading-transactions, when validation conditions are met.

### Claim 20 (depends on 17)

The system of claim 17, wherein the one or more processors are further configured to:
identify the at least one table-node for the predicate in the received statement, wherein the at least one table-node includes any one of:
a covered-node and an uncovered-node.

### Claim 21 (depends on 20)

The system of claim 20, wherein the at least one table-node is an uncovered-node, the method further comprises:
instantiating a conditional RV-entry in the uncovered-node.

### Claim 22 (depends on 21)

The system of claim 21, wherein the one or more processors are further configured to:
scan write vectors to identify conflicting writing-transactions and their respective agents, wherein an agent is instantiated on a node executing a writing-transaction; and
for each identified conflict writing-transaction, notifying the conflicting write-transaction agent for validation.

### Claim 23 (depends on 17)

The system of claim 17, wherein the one or more processors are further configured to:
when a commit pause is taken, pause notification on validation until the; and
commit pause is released.

### Claim 24 (depends on 17)

The system of claim 17, wherein the one or more processors are further configured to:
commit the transaction immediately after placing a commit pause on data; and
cells modified by the transaction.

### Claim 25 (depends on 24)

The system of claim 24, wherein the one or more processors are further configured to:
release the commit pause, conditional RV-entries, non-conditional RV-entries, non-conditional dependencies, and protective declarations.

### Claim 26 (depends on 17)

The system of claim 17, wherein tasks in the transaction are executed in an optimistic manner, and the transaction is validated in a pessimistic manner.
