# US 2026/0267859 A1 · Query processing device and method

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

- Number: US 2026/0267859 A1
- Document ID: US20260267859A1
- Status: Published application
- Kind: A1
- Application number: 19/414,443
- Filed: 2025-12-10
- Published: 2026-09-10
- Earliest claimed: 2025-03-10
- Assignees: GraphAI Co., Ltd.
- Applicants: GraphAI Co., Ltd.
- Inventors: Geon Ho LEE; Min Soo KIM; In Ju NA; Taek Yoon KIM
- Web page: https://patentgrep.com/patent/US20260267859A1

## CPC

- G06F 16/2456: {Join operations}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/24544: {Join order optimisation}
- G06F 16/2455: Query execution
- G06F 16/28: Databases characterised by their database models, e.g. relational or object models
- G06F 16/284: {Relational databases}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to a query processing device and method. The query processing device of the present disclosure includes a first storage device in which property information for vertices and edges is stored in relational tables, a second storage device in which a vertex record including connection information of the vertices in a graph and an edge record including connection information of edges in the graph are stored, and at least one processor for receiving a query for a property graph stored separately in the first storage device and the second storage device, calling data required for execution of the query, performing an operation on the query using a single integrated operator that performs at least one of traversal, join, and mapping operations depending on data types of a first operand and a second operand, and outputting a result of executing the query.

## Claims

### Claim 1

A query processing device comprising:
at least one memory including a plurality of instructions;
a first storage device in which property information for vertices and edges is stored in relational tables;
a second storage device in which a vertex record including connection information of the vertices in a graph and an edge record including connection information of edges in the graph are stored; and
at least one processor electrically connected to the at least one memory and configured to execute the plurality of instructions,
wherein, when the plurality of instructions are executed by the at least one processor, the at least one processor performs a plurality of operations,
the plurality of operations include
an operation of receiving a query for a property graph stored separately in the first storage device and the second storage device;
an operation of calling data required for execution of the query from the first storage device and the second storage device;
an operation of performing an operation on the query using a single integrated operator that performs at least one of traversal, join, and mapping operations depending on data types of a first operand and a second operand based on the called data; and
an operation of outputting a result of executing the query, and
the called data includes operands and operation relationship information between the operands defined by the query.

### Claim 2 (depends on 1)

The query processing device of claim 1,
wherein the vertex record includes an ID field, a label field, an output edge pointer field, an input edge pointer field, and a property-tuple pointer field,
the edge record includes an ID field, a label field, a source vertex pointer field, a destination vertex pointer field, a next output edge pointer field, a next input edge pointer field, and a property-tuple pointer field,
the output edge pointer field stores an address of at least one edge output from the vertex,
the input edge pointer field stores an address of at least one edge input to the vertex,
the property-tuple pointer field of the vertex record stores an address of the relational table connected to the vertex record,
the next output edge pointer field stores an address of a next edge output from a source vertex stored in the source vertex pointer field,
the next input edge pointer field stores an address of a next edge input to a destination vertex stored in the destination vertex pointer field, and
the property-tuple pointer field of the edge record stores an address of the relational table connected to the edge record.

### Claim 3 (depends on 2)

The query processing device of claim 2,
wherein the output edge pointer field includes one subfield for each label type of edges included in the graph, and
the input edge pointer field includes one subfield for each label type of edges included in the graph.

### Claim 4 (depends on 1)

The query processing device of claim 1, wherein the plurality of operations further include an operation of processing update requests corresponding to the first storage device and the second storage device in one transaction.

### Claim 5 (depends on 4)

The query processing device of claim 4,
wherein the operation of processing the update requests in one transaction includes:
an operation of receiving a label and a property of a graph element to be inserted into the first storage device and the second storage device;
a first storage device update operation of storing the property of the graph element to be inserted in the relational table of the first storage device; and
a second storage device update operation of storing the label of the graph element to be inserted into a label field of the vertex record or the edge record of the second storage device, and storing the address of the relational table in which the graph element to be inserted is stored in the property-tuple pointer field of the vertex record or edge record.

### Claim 6 (depends on 4)

The query processing device of claim 4,
wherein the operation of processing the update requests in one transaction includes
an operation of recording content of the update requests for the first storage device and the second storage device; and
an operation of restoring all changes reflected in the first storage device and the second storage device to original states based on the recorded content of update requests when an error occurs in the update operation of the first storage device or the second storage device.

### Claim 7 (depends on 1)

The query processing device of claim 1, wherein the integrated operator selectively performs traversal, join, and mapping operations within a single query processing layer.

### Claim 8 (depends on 1)

The query processing device of claim 1,
wherein the operation of performing an operation on the query using the integrated operator includes
an operation of performing a traversal operation on the first operand and the second operand when both the first operand and the second operand are graph elements including at least one of a set of vertices stored in the second storage device and a set of edges stored in the second storage device;
an operation of performing a join operation on the first operand and the second operand when both the first operand and the second operand are relational data stored in the relational table of the first storage device;
an operation of performing a first mapping operation between the graph element of the first operand and the relational database of the second operand when the first operand is the graph element and the second operand is the relational data; and
an operation of performing a second mapping operation between the relational database of the first operand and the graph element of the second operand when the first operand is the relational database and the second operand is the graph element.

### Claim 9 (depends on 8)

The query processing device of claim 8,
wherein the plurality of operations further include an operation of generating a query processing plan based on the called data,
the operation of generating the query processing plan includes
an operation of calculating a cost for each possible operation order combination between the operands; and
an operation of selecting an optimal subplan requiring the lowest cost in the possible operation order combinations,
the operation of calculating the cost includes
an operation of calculating a cost of the traversal operation using the integrated operator based on the number of traversal start points, disc I/O cost, CPU operation cost, and buffer cache effect;
an operation of calculating a cost of the join operation using the integrated operator based on a size of a participating table, disc I/O cost, CPU operation cost, and intermediate result size; and
an operation of calculating a cost of the mapping operation using the integrated operator based on a pointer traversal cost, disc I/O cost, and CPU operation cost, and
the operation of calculating the cost of the traversal operation includes weighting disc access and operation costs by reflecting an average connection degree of the vertices when a traversal direction of the traversal operation proceeds from the vertex to the edge.

### Claim 10 (depends on 1)

The query processing device of claim 1,
wherein the plurality of operations further include
an operation of extracting at least one graph from the relational table stored in the first storage device; and
an operation of storing data of the extracted graph in the second storage device, the operation of calling the required data includes an operation of calling data related to the at least one graph from the second storage device, and
the operation of performing an operation on the query includes an operation of performing an operation on data related to a plurality of graphs.

### Claim 11

A method of processing a query in a query processing device including at least one memory including a plurality of instructions, a first storage device in which property information for vertices and edges is stored in relational tables, a second storage device in which a vertex record including connection information of the vertices in a graph and an edge record including connection information of edges in the graph are stored, and at least one processor electrically connected to the at least one memory and configured to execute the plurality of instructions, the method comprising:
an operation of receiving a query for a property graph stored separately in the first storage device and the second storage device;
an operation of calling data required for execution of the query from the first storage device and the second storage device;
an operation of performing an operation on the query using a single integrated operator that performs at least one of traversal, join, and mapping operations depending on data types of a first operand and a second operand based on the called data; and
an operation of outputting a result of executing the query, and
the called data includes operands and operation relationship information between the operands defined by the query.

### Claim 12 (depends on 11)

The method of claim 11,
wherein the vertex record includes an ID field, a label field, an output edge pointer field, an input edge pointer field, and a property-tuple pointer field,
the edge record includes an ID field, a label field, a source vertex pointer field, a destination vertex pointer field, a next output edge pointer field, a next input edge pointer field, and a property-tuple pointer field,
the output edge pointer field includes one subfield for each label type of edges included in the graph, and stores an address of at least one edge output from the vertex,
the input edge pointer field includes one subfield for each label type of edges included in the graph, and stores an address of at least one edge input to the vertex,
the property-tuple pointer field of the vertex record stores an address of the relational table connected to the vertex record,
the next output edge pointer field stores an address of a next edge output from a source vertex stored in the source vertex pointer field,
the next input edge pointer field stores an address of a next edge input to a destination vertex stored in the destination vertex pointer field, and
the property-tuple pointer field of the edge record stores an address of the relational table connected to the edge record.

### Claim 13 (depends on 11)

The method of claim 11, further comprising an operation of processing update requests corresponding to the first storage device and the second storage device in one transaction.

### Claim 14 (depends on 13)

The method of claim 13,
wherein the operation of processing the update requests in one transaction includes:
an operation of receiving a label and a property of a graph element to be inserted into the first storage device and the second storage device;
a first storage device update operation of storing the property of the graph element to be inserted in the relational table of the first storage device; and
a second storage device update operation of storing the label of the graph element to be inserted into a label field of the vertex record or the edge record of the second storage device, and storing the address of the relational table in which the graph element to be inserted is stored in the property-tuple pointer field of the vertex record or edge record.

### Claim 15 (depends on 13)

The method of claim 13,
wherein the operation of processing the update requests in one transaction includes
an operation of recording content of the update requests for the first storage device and the second storage device; and
an operation of restoring all changes reflected in the first storage device and the second storage device to original states based on the recorded content of update requests when an error occurs in the update operation of the first storage device or the second storage device.

### Claim 16 (depends on 11)

The method of claim 11, wherein the integrated operator selectively performs the traversal, join, and mapping operations within a single query processing layer.

### Claim 17 (depends on 11)

The method of claim 11,
wherein the operation of performing an operation on the query using the integrated operator includes
an operation of performing a traversal operation on the first operand and the second operand when both the first operand and the second operand are graph elements including at least one of a set of vertices stored in the second storage device and a set of edges stored in the second storage device;
an operation of performing a join operation on the first operand and the second operand when both the first operand and the second operand are relational data stored in the relational table of the first storage device;
an operation of performing a first mapping operation between the graph element of the first operand and the relational database of the second operand when the first operand is the graph element and the second operand is the relational data; and
an operation of performing a second mapping operation between the relational database of the first operand and the graph element of the second operand when the first operand is the relational database and the second operand is the graph element.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
an operation of generating a query processing plan based on the called data,
wherein the operation of generating the query processing plan includes
an operation of calculating a cost for each possible operation order combination between the operands; and
an operation of selecting an optimal subplan requiring the lowest cost in the possible operation order combinations,
the operation of calculating the cost includes
an operation of calculating a cost of the traversal operation using the integrated operator based on the number of traversal start points, disc I/O cost, CPU operation cost, and buffer cache effect;
an operation of calculating a cost of the join operation using the integrated operator based on a size of a participating table, disc I/O cost, CPU operation cost, and intermediate result size; and
an operation of calculating a cost of the mapping operation using the integrated operator based on a pointer traversal cost, disc I/O cost, and CPU operation cost, and
the operation of calculating the cost of the traversal operation includes weighting disc access and operation costs by reflecting an average connection degree of the vertices when a traversal direction of the traversal operation proceeds from the vertex to the edge.

### Claim 19 (depends on 11)

The method of claim 11, further comprising:
an operation of extracting at least one graph from the relational table stored in the first storage device; and
an operation of storing data of the extracted graph in the second storage device,
wherein the operation of calling the required data includes an operation of calling data related to the at least one graph from the second storage device, and
the operation of performing an operation on the query includes an operation of performing an operation on data related to a plurality of graphs.

### Claim 20 (depends on 11)

A computer program stored on a computer-readable recording medium to execute the method according to claim 11 in conjunction with hardware.
