# US 2026/0037538 A1 · External Control for Structured Query Language (SQL) Statement Execution

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

- Number: US 2026/0037538 A1
- Document ID: US20260037538A1
- Status: Published application
- Kind: A1
- Application number: 18/790,308
- Filed: 2024-07-31
- Published: 2026-02-05
- Earliest claimed: 2024-07-31
- Assignees: Ocient Holdings LLC
- Applicants: Ocient Holdings LLC
- Inventors: Knut Stolze; Brendan J. Batliner; Stefan Renner
- Web page: https://patentgrep.com/patent/US20260037538A1

## CPC

- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/24532: {of parallel queries}
- G06F 16/2455: Query execution
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for execution by a database system to improve testing, the method includes creating a synchronization database object (SDO) indicating a set of conditions for suspension of execution of queries. The method further includes establishing a first and second session, where the first session applies the SDO to a query expression and the second session monitors the SDO. The method further includes initiating, via the first session, execution of queries, and suspending the execution of queries when detecting a condition is met. The method further includes updating, via the first session, at least one relational database table to include monitoring data indicating suspension of the queries. The method further includes the second session verifying the suspension and instructing the SDO to resume suspended queries. The method further includes resuming, via the first session, the queries until a next condition is met or execution of the queries is finished.

## Claims

### Claim 1

A method for execution via at least one processor of a database system, the method comprising:
creating a synchronization database object indicating a set of conditions for suspension of execution of at least one executing query expression;
establishing a first session configured to apply the synchronization database object to suspend execution of the at least one executing query expression when a condition of the set of conditions for suspension of execution is detected;
establishing a second session configured to:
monitor the synchronization database object via accessing of monitoring data in at least one relational database table; and
resume execution of any suspended query expressions when the condition is detected;
initiating, via the first session, execution of a first query expression via a plurality of parallelized nodes of the database system based on processing an execute query command to execute the first query expression issued via the first session;
suspending, via the first session based on the first session being configured to apply the synchronization database object, the execution of the first query expression via the synchronization database object in response to detecting the condition of the set of conditions being met during the execution of the first query expression;
updating, via the first session, the at least one relational database table to include the monitoring data indicating suspension of the first query expression in response to detecting the condition of the set of conditions for suspension being met of the first query expression via the synchronization database object;
accessing, via the second session based on the second session being configured to monitor the synchronization database object, the monitoring data in the at least one relational database table to verify, based on the monitoring data, that suspension of the first query expression was in accordance with the condition; and
resuming the execution of the first query expression, via the first session and based on the second session being configured to instruct the synchronization data object to resume execution of the first query expression based on the verification, until another condition of the set of conditions is met or the first query expression execution is finished.

### Claim 2 (depends on 1)

The method of claim 1, wherein creating the synchronization database object comprises:
processing a create synchronization database object command that includes:
a first object name for the synchronization database object as a first configurable parameter of the create synchronization database object command; and
the set of conditions for suspension of execution of a query expression as a second configurable parameter of the create synchronization database object command.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first session is configured to apply the synchronization database object based on processing a suspend command that identifies the synchronization database object based on including the first object name as a configurable parameter of the suspend command.

### Claim 4 (depends on 2)

The method of claim 2, wherein the second session is configured to instruct the synchronization database object to resume execution of any suspended query expressions when any condition of the set of conditions for suspension are detected based on processing a resume command that identifies:
the synchronization database object based on including the first object name as a configurable parameter of the resume command; and
a set of conditions for resuming the execution of any suspended query expressions as a second configurable parameter of the resume command, wherein the set of conditions for resuming the execution of the any suspended query expressions are configured based on the set of conditions for suspension of execution of any executing query expressions.

### Claim 5 (depends on 1)

The method of claim 1, wherein the set of conditions indicates a source code location, wherein the execution of the first query expression includes executing source code for the first query expression, and wherein the execution of the first query expression is suspended based on reaching the source code location in the source code for the first query expression while executing the source code for the first query expression.

### Claim 6 (depends on 1)

The method of claim 1, wherein the initiating execution of the first query expression includes transmitting initial execution state information to the plurality of parallelized nodes indicating an execution mode for the first query expression via a first value of a Boolean variable.

### Claim 7 (depends on 6)

The method of claim 6, wherein the suspending execution of the first query expression includes transmitting updated execution state information to the plurality of parallelized nodes indicating a suspended mode for the first query expression via a second value for the Boolean variable flipped from the first value of the Boolean variable.

### Claim 8 (depends on 7)

The method of claim 7, wherein the resuming execution of the first query expression includes transmitting further updated execution state information to the plurality of parallelized nodes indicating the execution mode for the query expression via the first value of the Boolean variable.

### Claim 9 (depends on 8)

The method of claim 8 further comprises:
maintaining a communication protocol between the plurality of parallelized nodes in an active or an unsuspended state.

### Claim 10 (depends on 1)

The method of claim 1, wherein the first query expression is executed as a test query in conjunction with running a test of database functionality, and wherein the monitoring data stored in the at least one relational database table corresponds to test data for the test.

### Claim 11 (depends on 10)

The method of claim 10 further comprises:
cancelling the test during a particular phase of the test query, wherein the condition of the synchronization database object indicates the particular phase.

### Claim 12 (depends on 11)

The method of claim 11, wherein the particular phase comprises one of:
a queuing phase;
a parsing phase;
an optimization phase;
a result set fetching phase; and
an execution phase.

### Claim 13 (depends on 1)

The method of claim 1, wherein the first query expression is one of a plurality of query expressions subscribed to the synchronization data object, and wherein the plurality of query expressions are executed simultaneously to stress test a particular component of the database system.

### Claim 14 (depends on 1)

The method of claim 1, wherein the first session is implemented via a first Structured Query Language (SQL) session, wherein the second session is implemented via a second SQL session, and wherein the synchronization database object is implemented as a SQL LATCH object.

### Claim 15 (depends on 14)

The method of claim 14, wherein the synchronization database object is identified by a unique name, wherein the unique name synchronizes the execution of query expressions across a plurality of SQL sessions that include the first and second SQL sessions.

### Claim 16 (depends on 1)

The method of claim 1 further comprises:
establishing a third session configured to apply the synchronization database object to suspend execution of a second query expression when a condition of the set of conditions for suspension of execution is detected;
initiating, via the third session, execution of the second query expression via a second plurality of parallelized nodes of the database system based on processing a second execute query command to execute the second query expression issued via the third session;
suspending, via the third session based on the third session being configured to apply the synchronization database object, the execution of the second query expression via the synchronization database object in response to detecting the condition of the set of conditions being met during the execution of the second query expression; and
updating, via the third session, the at least one relational database table to include second monitoring data indicating suspension of the second query expression in response to detecting the condition of the set of conditions for suspension being met of the second query expression via the synchronization database object.

### Claim 17 (depends on 16)

The method of claim 16 further comprises:
accessing, via the second session based on the second session being configured to monitor the synchronization database object, the second monitoring data in the at least one relational database table to verify, based on the second monitoring data, that suspension of the second query expression was in accordance with the condition; and
resuming the execution of the second query expression, via the third session and based on the second session being configured to instruct the synchronization data object to resume execution of the second query expression, until another condition of the set of conditions is met or the second query expression execution is finished.

### Claim 18 (depends on 1)

The method of claim 1 further comprises:
receiving a set of time series records for storage via a database system, wherein the set of time series records correspond to a set of times;
determining density constraint data for the set of time series records;
generating a set of rows of a second relational database table from the set of time series records based on utilizing the density constraint data to generate a subset of rows of the set of rows for a set of new records distinct from the set of time series records;
storing the set of rows via long-term storage of the database system; and
executing the first query expression against the second relational database table based on accessing the set of rows in the long-term storage.

### Claim 19

A database system includes:
at least one processor; and
at least one memory storing operational instructions that, when executed by the at least one processor, causes the database system to:
create a synchronization database object indicating a set of conditions for suspension of execution of at least one executing query expression;
establish a first session configured to apply the synchronization database object to suspend execution of the at least one executing query expression when a condition of the set of conditions for suspension of execution is detected;
establish a second session configured to:
monitor the synchronization database object via accessing of monitoring data in at least one relational database table; and
resume execution of any suspended query expressions when the condition is detected;
initiate, via the first session, execution of a first query expression via a plurality of parallelized nodes of the database system based on processing an execute query command to execute the first query expression issued via the first session;
suspend, via the first session based on the first session being configured to apply the synchronization database object, the execution of the first query expression via the synchronization database object in response to detecting the condition of the set of conditions being met during the execution of the first query expression;
update, via the first session, the at least one relational database table to include the monitoring data indicating suspension of the first query expression in response to detecting the condition of the set of conditions for suspension being met of the first query expression via the synchronization database object;
access, via the second session based on the second session being configured to monitor the synchronization database object, the monitoring data in the at least one relational database table to verify, based on the monitoring data, that suspension of the first query expression was in accordance with the condition; and
resume the execution of the first query expression, via the first session and based on the second session being configured to instruct the synchronization data object to resume execution of the first query expression, until another condition of the set of conditions is met or the first query expression execution is finished.

### Claim 20

A non-transitory computer readable storage medium comprises:
at least one memory section that stores operational instructions that, when executed by at least one processing module that includes a processor and a memory, causes the at least one processing module to:
create a synchronization database object indicating a set of conditions for suspension of execution of at least one executing query expression;
establish a first session configured to apply the synchronization database object to suspend execution of the at least one executing query expression when a condition of the set of conditions for suspension of execution is detected;
establish a second session configured to:
monitor the synchronization database object via accessing of monitoring data in at least one relational database table; and
resume execution of any suspended query expressions when the condition is detected;
initiate, via the first session, execution of a first query expression via a plurality of parallelized nodes of the database system based on processing an execute query command to execute the first query expression issued via the first session;
suspend, via the first session based on the first session being configured to apply the synchronization database object, the execution of the first query expression via the synchronization database object in response to detecting the condition of the set of conditions being met during the execution of the first query expression;
update, via the first session, the at least one relational database table to include the monitoring data indicating suspension of the first query expression in response to detecting the condition of the set of conditions for suspension being met of the first query expression via the synchronization database object;
access, via the second session based on the second session being configured to monitor the synchronization database object, the monitoring data in the at least one relational database table to verify, based on the monitoring data, that suspension of the first query expression was in accordance with the condition; and
resume the execution of the first query expression, via the first session and based on the second session being configured to instruct the synchronization data object to resume execution of the first query expression, until another condition of the set of conditions is met or the first query expression execution is finished.
