# US 2026/0079921 A1 · High-level query conversion system with prefix-based search for data stores

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

- Number: US 2026/0079921 A1
- Document ID: US20260079921A1
- Status: Published application
- Kind: A1
- Application number: 18/886,929
- Filed: 2024-09-16
- Published: 2026-03-19
- Earliest claimed: 2024-09-16
- Assignees: GitLab Inc.
- Applicants: GitLab Inc.
- Inventors: Julian Thome; Isaac Dawson; Jason Leasure; Thomas Woodham
- Web page: https://patentgrep.com/patent/US20260079921A1

## CPC

- G06F 16/2425: {Iterative querying; Query formulation based on the results of a preceding query}
- G06F 16/24522: {Translation of natural language queries to structured queries}
- G06F 16/245: Query processing
- G06F 16/2452: Query translation
- G06F 16/24542: {Plan optimisation}
- G06F 16/248: Presentation of query results
- G06F 16/28: Databases characterised by their database models, e.g. relational or object models
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system includes a computing server having a processor and memory. The memory stores code including instructions. The instructions, when executed by the system, cause the system to perform steps including receiving a query from a user device, converting the query into a predicate expression data instance, generating an iteration tree based on the predicate expression data instance, determining search data based on the generated iteration tree, accessing a set of index entries of the key-value store, and searching the set of index entries based on the search data. A graphical user interface is in communication with the computing server and configured to display an indicator associated with the results of the search.

## Claims

### Claim 1

A system, comprising:
a computing server comprising a processor and memory in communication with the processor, the memory configured to store code comprising instructions, wherein the instructions, when executed by the system, cause the system to perform steps comprising:
receiving a query from a user device;
converting the query into a predicate expression data instance;
generating an iteration tree based on the predicate expression data instance, comprising:
transforming each predicate in the predicate expression data instance into a corresponding iterator node; and
arranging the iterator nodes in a hierarchical structure that reflects logical relationships among the predicates to create the iteration tree;
determining search data based on the generated iteration tree, comprising:
traversing the hierarchical structure of the iterator nodes in the generated iteration tree to identify the search data having at least one attribute associated with at least one iterator node; and
generating a prefix based on the at least one attribute associated with the at least one iterator node;
accessing a set of index entries of a data store;
searching the set of index entries based on the search data, wherein searching the set of index entries based on the search data comprises:
comparing the prefix of a given key of the search data to the set of index entries;
responsive to the given key matching an entry of the set of index entries, accessing a data object corresponding to the given key in the data store and adding the given key and its corresponding data object to a result dataset;
iteratively searching the set of index entries in a predefined order until all keys of the search data are considered; and
compiling the result dataset; and
causing a graphical user interface to display an indicator associated with the result dataset.

### Claim 2 (depends on 1)

The system of claim 1, wherein the predicate expression data instance comprises:
nodes representing variables and predicates from the query; and
arcs connecting the nodes to represent logical relationships between the variables and predicates.

### Claim 3 (depends on 1)

The system of claim 1, wherein converting the query into the predicate expression data instance comprises:
parsing the query using a predefined structure;
identifying one or more predicates within the query; and
generating the predicate expression data instance as a data structure to represent the logical relationships between the identified predicates.

### Claim 4 (depends on 3)

The system of claim 3, wherein converting the query into the predicate expression data instance further comprises:
processing the generated the predicate expression data instance to remove redundancies.

### Claim 5 (depends on 4)

The system of claim 4, wherein processing the generated the predicate expression data instance to remove redundancies comprises:
iteratively applying a set of logical transformation rules to the predicate expression data instance until a fixed point is reached where no further optimizations can be made,
wherein the logical transformation rules comprises one or more of:
removing redundant predicates;
eliminating double negations;
simplifying logical expressions; or
combining identical predicates connected by logical AND or OR operations.

### Claim 6 (depends on 1)

The system of claim 1, wherein generating the iteration tree based on the predicate expression data instance comprises:
converting each predicate in the predicate expression data instance into a corresponding iterator node; and
arranging the iterator nodes in a hierarchical structure that reflects logical relationships based on the predicate expression data instance.

### Claim 7 (depends on 1)

The system of claim 1, wherein generating the iteration tree based on the predicate expression data instance comprises:
generating a lazy data object iterator tree based on the predicate expression data instance wherein the lazy data object iterator tree prioritizes execution of a first type of predicates and implements lazy evaluation of predicates to minimize unnecessary data retrieval.

### Claim 8 (depends on 1)

The system of claim 1, wherein determining search data based on the generated iteration tree comprises:
traversing the iteration tree to identify predicate nodes;
for each identified predicate node:
evaluating the predicate to determine an operation on an indexed attribute in the data store; and
responsive to predicates operating on indexed attributes, formulating a key prefix by using a name of the indexed attribute as a prefix base, and appending, to the prefix base, a value or range based on a condition of the predicates; and
compiling a dataset of search data, the dataset of search data comprising the formulated key prefixes.

### Claim 9 (depends on 8)

The system of claim 8, wherein determining search data based on the generated iteration tree further comprises:
estimating a selectivity of each formulated key prefix;
assigning priorities to the formulated key prefixes based on their estimated selectivity and/or characteristics of the data store; and
compiling the dataset of search data, the dataset of search data comprising the formulated key prefixes ordered based on their assigned priorities.

### Claim 10 (depends on 8)

The system of claim 8, wherein accessing the set of index entries of the data store comprises:
causing electronic communication to the data store where the index entries are located; and
identifying the set of index entries based on attributes referenced in the determined search data.

### Claim 11 (depends on 1)

The system of claim 1, wherein the data store includes a key-value store.

### Claim 12

A method, comprising:
receiving a query from a user device;
converting the query into a predicate expression data instance;
generating an iteration tree based on the predicate expression data instance, comprising:
transforming each predicate in the predicate expression data instance into a corresponding iterator node; and
arranging the iterator nodes in a hierarchical structure that reflects logical relationships among the predicates to create the iteration tree;
determining search data based on the generated iteration tree, comprising:
traversing the hierarchical structure of the iterator nodes in the generated iteration tree to identify the search data having at least one attribute associated with at least one iterator node; and
generating a prefix based on the at least one attribute associated with the at least one iterator node;
accessing a set of index entries of a data store;
searching the set of index entries based on the search data, wherein searching the set of index entries based on the search data comprises:
comparing the prefix of a given key of the search data to the set of index entries;
responsive to the given key matching an entry of the set of index entries, accessing a data object corresponding to the given key in the data store and adding the given key and its corresponding data object to a result dataset;
iteratively searching the set of index entries in a predefined order until all keys of the search data are considered; and
compiling the result dataset; and
causing a graphical user interface to display an indicator associated with the result dataset.

### Claim 13 (depends on 12)

The method of claim 12, wherein the predicate expression data instance comprises:
nodes representing variables and predicates from the query; and
arcs connecting the nodes to represent logical relationships between the variables and predicates.

### Claim 14 (depends on 12)

The method of claim 12, wherein converting the query into the predicate expression data instance comprises:
parsing the query using a predefined structure;
identifying one or more predicates within the query; and
generating the predicate expression data instance as a data structure to represent the logical relationships between the identified predicates.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
processing the generated predicate expression data instance to remove redundancies.

### Claim 16 (depends on 15)

The method of claim 15, wherein processing the generated the predicate expression data instance to remove redundancies comprises:
iteratively applying a set of logical transformation rules to the predicate expression data instance until a fixed point is reached where no further optimizations can be made,
wherein the logical transformation rules comprises:
removing redundant predicates;
eliminating double negations;
simplifying logical expressions; and/or
combining identical predicates connected by logical AND or OR operations.

### Claim 17 (depends on 12)

The method of claim 12, wherein generating the iteration tree based on the predicate expression data instance comprises:
converting each predicate in the predicate expression data instance into a corresponding iterator node; and
arranging the iterator nodes in a hierarchical structure that reflects logical relationships based on the predicate expression data instance.

### Claim 18 (depends on 12)

The method of claim 12, wherein generating the iteration tree based on the predicate expression data instance comprises:
generating a lazy data object iterator tree based on the predicate expression data instance wherein the lazy data object iterator tree prioritizes execution of a first type of predicates and implements lazy evaluation of predicates to minimize unnecessary data retrieval.

### Claim 19 (depends on 12)

The method of claim 12, wherein determining search data based on the generated iteration tree comprises:
traversing the iteration tree to identify predicate nodes;
for each identified predicate node:
evaluating the predicate to determine an operation on an indexed attribute in the data store; and
responsive to predicates operating on indexed attributes, formulating a key prefix by using a name of the indexed attribute as a prefix base, and appending, to the prefix base, a value or range based on a condition of the predicates; and
compiling a dataset of search data, the dataset of search data comprising the formulated key prefixes.

### Claim 20

A computer program product comprising a non-transitory computer readable storage medium having instructions encoded thereon that, when executed by a computing system, cause the computing system to perform operations including:
receiving a query from a user device;
converting the query into a predicate expression data instance;
generating an iteration tree based on the predicate expression data instance, comprising:
transforming each predicate in the predicate expression data instance into a corresponding iterator node; and
arranging the iterator nodes in a hierarchical structure that reflects logical relationships among the predicates to create the iteration tree;
determining search data based on the generated iteration tree, comprising:
traversing the hierarchical structure of the iterator nodes in the generated iteration tree to identify the search data having at least one attribute associated with at least one iterator node; and
generating a prefix based on the at least one attribute associated with the at least one iterator node;
accessing a set of index entries of a data store;
searching the set of index entries based on the search data, wherein searching the set of index entries based on the search data comprises:
comparing the prefix of a given key of the search data to the set of index entries;
responsive to the given key matching an entry of the set of index entries, accessing a data object corresponding to the given key in the data store and adding the given key and its corresponding data object to a result dataset;
iteratively searching the set of index entries in a predefined order until all keys of the search data are considered; and
compiling the result dataset; and
causing a graphical user interface to display an indicator associated with the result dataset.
