# US 2025/0165455 A1 · Predictive concurrency control protocol and system thereof

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

- Number: US 2025/0165455 A1
- Document ID: US20250165455A1
- Status: Published application
- Kind: A1
- Application number: 18/944,462
- Filed: 2024-11-12
- 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/US20250165455A1

## 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 system and method of the device may include during a validation phase of a transaction, identifying conditional conflicts and their corresponding conflicting transactions, where the corresponding conflicting transactions are reading-transactions conflicting with the transaction. In addition, the device may include for each conditional conflict, classifying its state to determine if the transaction can commit, with respect to the conditional conflict, before the corresponding conflicting transaction. The device may include marking the transaction as dependent on the corresponding conflicting transaction when the transaction cannot commit before the corresponding conflicting transaction. Moreover, the device may include placing a commit pause on data cells modified by the transaction, thereby allowing the transaction to commit, when the transaction can commit before any corresponding conflicting transactions.

## Claims

### Claim 1

A method for managing the execution of database transactions in a database system, comprising:
during a validation phase of a transaction, identifying conditional conflicts and their corresponding conflicting transactions, wherein the corresponding conflicting transactions are reading-transactions conflicting with the transaction;
for each conditional conflict, classifying its state to determine if the transaction can commit, with respect to the conditional conflict, before the corresponding conflicting transaction;
marking the transaction as dependent on the corresponding conflicting transaction when the transaction cannot commit before the corresponding conflicting transaction; and
placing a commit pause on data cells modified by the transaction, thereby allowing the transaction to commit, when the transaction can commit before any corresponding conflicting transactions.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
identifying non-conditional conflicts and their related conflicting transactions; and
for each non-conditional conflict, marking the transaction as dependent on the corresponding conflicting transaction.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
waiting until all dependencies are cleared; and
placing a commit pause on data cells modified by the transaction.

### Claim 4 (depends on 1)

The method of claim 1, wherein a conditional conflict is determined based, in part, on at least one predicate in the corresponding conflicting transaction.

### Claim 5 (depends on 4)

The method of claim 4, wherein the state is determined based on the value of each of the least one predicates after applying an epsilon checking procedure, wherein the epsilon checking procedure evaluates values of a predicate on a data cell set immediately before and immediately after committing the transaction.

### Claim 6 (depends on 5)

The method of claim 5, wherein a state of a conditional conflict is determined as a stay-in state when the evaluated values of a predicate immediately before and immediately after committing the transaction are a Boolean value true.

### Claim 7 (depends on 6)

The method of claim 6, wherein the stay-in state provides that there is no potential dependency between the transaction and the corresponding conflicting transaction with respect to the conditional conflict.

### Claim 8 (depends on 5)

The method of claim 5, wherein a state of a conditional conflict is determined as a stay-out state when the evaluated values of a predicate immediately before and immediately after committing the transaction are a Boolean value false.

### Claim 9 (depends on 8)

The method of claim 8, wherein the stay-out state provides that there is no potential dependency between the transaction and the corresponding conflicting transaction with respect to the conditional conflict.

### Claim 10 (depends on 5)

The method of claim 5, wherein a state of a conditional conflict is determined as a move-in state when the evaluated value of a predicate immediately before committing the transaction is a Boolean value false, and the evaluated value of the predicate immediately after committing the transaction is a Boolean value true.

### Claim 11 (depends on 10)

The method of claim 10, wherein the move-in state does not allow the transaction to commit before the corresponding conflicting transaction.

### Claim 12 (depends on 5)

The method of claim 5, wherein a state of a conditional conflict is determined as a move-out state when the evaluated value of a predicate immediately before committing the transaction is a Boolean value true, and the evaluated value of the predicate immediately after committing the transaction is a Boolean value false.

### Claim 13 (depends on 12)

The method of claim 12, wherein the move-out state does not allow the transaction to commit before the corresponding conflicting transaction.

### Claim 14 (depends on 1)

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

### Claim 15

A method for managing the execution of database transactions, comprising:
receiving at least one statement that is a part of a transaction, wherein the transaction is initiated by a client to be executed on a database system;
executing tasks included in each of the at least one received statements in an optimistic manner, wherein the received at least one statement is not a commit statement;
upon receiving a commit statement, validating the transaction in a predictive and pessimistic manner to determine if the transaction can be committed before any conflicting transaction; and
returning to the client an acknowledgment that the transaction is committed, where the transaction is not dependent on any conflicting transaction.

### Claim 16 (depends on 1)

The method of claim 1, wherein the conflicting transaction is determined to be any one of: a conditional conflict and a non-conditional conflict.

### Claim 17

A non-transitory computer-readable medium storing a set of instructions for managing the execution of database transactions in a 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:
during a validation phase of a transaction, identifying conditional conflicts and their corresponding conflicting transactions, wherein the corresponding conflicting transactions are reading-transactions conflicting with the transaction;
for each conditional conflict, classify its state to determine if the transaction can commit, with respect to the conditional conflict, before the corresponding conflicting transaction;
mark the transaction as dependent on the corresponding conflicting transaction when the transaction cannot commit before the corresponding conflicting transaction; and
place a commit pause on data cells modified by the transaction, thereby allowing the transaction to commit, when the transaction can commit before any corresponding conflicting transactions.

### Claim 18

A system for managing the execution of database transactions in a database system comprising:
one or more processors configured to:
during a validation phase of a transaction, identifying conditional conflicts and their corresponding conflicting transactions, wherein the corresponding conflicting transactions are reading-transactions conflicting with the transaction;
for each conditional conflict, classify its state to determine if the transaction can commit, with respect to the conditional conflict, before the corresponding conflicting transaction;
mark the transaction as dependent on the corresponding conflicting transaction when the transaction cannot commit before the corresponding conflicting transaction; and
place a commit pause on data cells modified by the transaction, thereby allowing the transaction to commit, when the transaction can commit before any corresponding conflicting transactions.

### Claim 19 (depends on 18)

The system of claim 18, wherein the one or more processors are further configured to:
identify non-conditional conflicts and their related conflicting transactions; and
for each non-conditional conflict, mark the transaction as dependent on the corresponding conflicting transaction.

### Claim 20 (depends on 19)

The system of claim 19, wherein the one or more processors are further configured to:
wait until all dependencies are cleared; and
place a commit pause on data cells modified by the transaction.

### Claim 21 (depends on 18)

The system of claim 18, wherein a conditional conflict is determined based, in part, on at least one predicate in the corresponding conflicting transaction.

### Claim 22 (depends on 21)

The system of claim 21, wherein the state is determined based on the value of each of the least one predicates after applying an epsilon checking procedure, the epsilon checking procedure evaluates values of a predicate on a data cell set immediately before and immediately after committing the transaction.

### Claim 23 (depends on 22)

The system of claim 22, wherein a state of a conditional conflict is determined as a stay-in state when the evaluated values of a predicate immediately before and immediately after committing the transaction are Boolean value true.

### Claim 24 (depends on 23)

The system of claim 23, wherein the stay-in state provides that there is no potential dependency between the transaction and the corresponding conflicting transaction with respect to the conditional conflict.

### Claim 25 (depends on 22)

The system of claim 22, wherein a state of a conditional conflict is determined as a stay-out state when the evaluated values of a predicate immediately before and immediately after committing the transaction are Boolean value false.

### Claim 26 (depends on 25)

The system of claim 25, wherein the stay-out state provides that there is no potential dependency between the transaction and the corresponding conflicting transaction with respect to the conditional conflict.

### Claim 27 (depends on 22)

The system of claim 22, wherein a state of a conditional conflict is determined as a move-in state when the evaluated value of a predicate immediately before committing the transaction is a Boolean value false, and the evaluated value of the predicate immediately after committing the transaction is a Boolean value true.

### Claim 28 (depends on 27)

The system of claim 27, wherein the move-in state does not allow the transaction to commit before the corresponding conflicting transaction.

### Claim 29 (depends on 22)

The system of claim 22, wherein a state of a conditional conflict is determined as a move-out state when the evaluated value of a predicate immediately before committing the transaction is a Boolean value true, and the evaluated value of the predicate immediately after committing the transaction is a Boolean value false.

### Claim 30 (depends on 29)

The system of claim 29, wherein the move-out state does not allow the transaction to commit before the corresponding conflicting transaction.

### Claim 31 (depends on 18)

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

### Claim 32 (depends on 18)

The system of claim 18, wherein the conflicting transaction is determined to be any one of:
a conditional conflict and a non-conditional conflict.

### Claim 33

A database system, comprising:
a plurality of nodes, wherein each of the plurality of nodes include:
a storage; and
one or more processors, wherein the one or more processors configured to:
receive at least one statement that is a part of a transaction, wherein the transaction is initiated by a client to be executed on a database system;
execute tasks included in each of the at least one received statements in an optimistic manner, wherein the received at least one statement is not a commit statement;
upon receiving a commit statement, validate the transaction in a predictive and pessimistic manner to determine if the transaction can be committed before any conflicting transaction; and
return to the client an acknowledgment that the transaction is committed, where the transaction is not dependent on any conflicting transaction.
