Cardinality estimation for optimization of recursive or iterative database queries by databases
AssigneeTeradata US, Inc.
InventorsAhmad Said Ghazal, Dawit Seid
Life of this patent
Estimating the term…
Loading patent…
AssigneeTeradata US, Inc.
InventorsAhmad Said Ghazal, Dawit Seid
Estimating the term…
An execution plan for executing one or more iterations of recursive database queries can be generated in accordance with one aspect of the invention. For example, in accordance with one embodiment of the invention, one or more cardinalities (results or size of results, including intermediate results) associated with one or more iterations can be estimated. This estimation can, for example, by performed by using a sampling or sampling-based algorithm. In addition, a plan generated for execution of one or more iteration of a recursive query can be modified or replaced by comparing the actual cardinality with its estimation. As a result, the first one or more iterations may be executed using a first plan but the subsequent one or more iterations may use a modified or different execution plan.
A method, implemented at least partly by a device, for generating an execution plan for a database query of a database, wherein the database query requires multiple sub-queries to be executed as multiple iterations such that a result of a first one of the sub-queries is needed to be determined in a first iteration of the iterations in order to determine the result of a second one of the sub-quires in a second iteration of the iterations to be performed after the first iteration, and wherein the method comprises:
A device that includes one or more processors that are configured to:
A non-transitory computer readable storage medium that stores at least executable code for generating an execution plan for a database query of a database, wherein the database query requires multiple sub-queries to be executed as multiple iterations such that a result of a first one of the sub-queries is needed to be determined in a first iteration of the iterations in order to determine the result of a second one of the sub-quires in a second iteration of the iterations to be performed after the first iteration, and wherein the executable code includes:
Dependencies are inferred from the claim text.