Database System with Methodology for Generating Bushy Nested Loop Join Trees
First Claim
1. An improved method for optimization of a query requesting data from a database, the method comprising:
- generating a left deep operator tree for returning data requested by the query based on traversing a left deep operator tree search space;
transforming the left deep operator tree into a semantically correct structure for returning data requested by the query; and
building a query execution plan for returning data requested by the query based on the semantically correct structure.
1 Assignment
0 Petitions
Accused Products
Abstract
A database system with methodology for generating bushy nested loop join trees is described. In one embodiment, for example, an improved method is described for optimization of a query requesting data from a database, the method comprises steps of: generating a left deep operator tree for returning data requested by the query based on traversing a left deep operator tree search space; transforming the left deep operator tree into a semantically correct structure for returning data requested by the query; and building a query execution plan for returning data requested by the query based on the semantically correct structure.
146 Citations
54 Claims
-
1. An improved method for optimization of a query requesting data from a database, the method comprising:
-
generating a left deep operator tree for returning data requested by the query based on traversing a left deep operator tree search space;
transforming the left deep operator tree into a semantically correct structure for returning data requested by the query; and
building a query execution plan for returning data requested by the query based on the semantically correct structure. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A system for optimization of a query requesting data from a database, the system comprising:
-
a search engine for building a left deep operator tree for returning data requested by the query based on traversing a left deep operator tree search space;
a transform module for transforming the left deep operator tree into a semantically correct tree structure; and
a generator module for generating a query execution plan for returning data requested by the query based on the semantically correct tree structure. - View Dependent Claims (17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29)
-
-
30. In a database system, a method for optimization of a query, the method comprising:
-
generating a plurality of candidate subplans for executing the query, with at least some of said candidate subplans structured as left deep nested loop join subtrees;
building a plan for executing the query based on selecting candidate subplans having favorable execution costs;
determining whether any left deep nested loop join subtree of the plan should be transformed to a bushy tree shape;
creating a transformed plan by transforming any left deep nested loop join subtrees determined to need transformation to a bushy tree shape; and
constructing a query execution plan for executing the query based on the transformed plan. - View Dependent Claims (31, 32, 33, 34, 35, 36, 37, 38, 39, 40)
-
-
41. A system for optimization of a query requesting data from a database, the system comprising:
-
a search engine for traversing a left deep operator tree search space and generating a left deep operator tree plan for returning data requested by the query;
a transform module for transforming the left deep operator tree into a bushy tree structure; and
a code generator for generating a query execution plan for returning data requested by the query based on the bushy tree structure. - View Dependent Claims (42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54)
-
Specification