# US 2010/0161651 A1 · Apparatus and Method for Processing Queries Using Oriented Query Paths

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

- Number: US 2010/0161651 A1
- Document ID: US20100161651A1
- Status: Published application
- Kind: A1
- Application number: 12/343,371
- Filed: 2008-12-23
- Published: 2010-06-24
- Earliest claimed: 2008-12-23
- Assignees: Business Objects, S.A.
- Inventors: Jean-Yves "Yannick" Cras
- Web page: https://patentgrep.com/patent/US20100161651A1

## CPC

- G06F 16/24544: {Join order optimisation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer readable storage medium includes executable instructions to specify a set of database tables defining vertices and database joins defining oriented edges to form a graph. The oriented edges specify directionality characterizing dependent relationships between database tables. A query path in the graph is identified. The graph is split into a set of directed acyclic graphs. Each directed acyclic graph has a single root vertex that does not form a path to itself through oriented edges. Selected oriented edges are removed from each directed acyclic graph to form a tree corresponding to each directed acyclic graph. The tree is a sub-graph of a directed acyclic graph without loops and one list of joins relates any two database tables in the tree. A database query is generated for each tree. The database query is applied to database tables to form query results. The query results are displayed.

## Claims

### Claim 1

A computer readable storage medium, comprising executable instructions to:
specify a set of database tables defining vertices and database joins defining oriented edges to form a graph, wherein the oriented edges specify directionality characterizing dependent relationships between database tables;
identify a query path in the graph;
split the graph into a set of directed acyclic graphs, wherein each directed acyclic graph has a single root vertex that does not form a path to itself through oriented edges;
remove selected oriented edges from each directed acyclic graph to form a tree corresponding to each directed acyclic graph, wherein the tree is a sub-graph of a directed acyclic graph without loops and one list of joins relates any two database tables in the tree;
generate a database query for each tree;
apply the database query to database tables to form query results; and
display the query results.

### Claim 2 (depends on 1)

The computer readable storage medium of claim 1 wherein the executable instructions to remove include executable instructions to identify a simple cycle in a directed acyclic graph, wherein a simple cycle is a cycle that contains one fan trap and one source, wherein a fan trap is a vertex with two incoming edges.

### Claim 3 (depends on 2)

The computer readable storage medium of claim 2 wherein each fan trap is annotated by metadata associated with a vertex.

### Claim 4 (depends on 1)

The computer readable storage medium of claim 1 wherein the executable instructions to remove include executable instructions to receive input from a user specifying a selected oriented edge to be removed.

### Claim 5 (depends on 4)

The computer readable storage medium of claim 4 further comprising executable instructions to supply the user with the names of vertices associated with a query.

### Claim 6 (depends on 4)

The computer readable storage medium of claim 4 further comprising executable instructions to supply the user with paths to a fan trap.

### Claim 7 (depends on 1)

The computer readable storage medium of claim 1 wherein the executable instructions to identify a query path include executable instructions to process an adjacency matrix to identify the query path.

### Claim 8 (depends on 1)

The computer readable storage medium of claim 1 further comprising executable instructions to split the query path into one sub-graph per root vertex.
