Estimating number of iterations or self joins required to evaluate iterative or recursive database queries
AssigneeTeradata Corporation
InventorsAhmad Said Ghazal, Dawit Seid
Life of this patent
Estimating the term…
Loading patent…
AssigneeTeradata Corporation
InventorsAhmad Said Ghazal, Dawit Seid
Estimating the term…
The number of iterations or self joins required to execute a recursive database query can be estimated. It will be appreciated that this estimation can be used to plan the execution of the recursive query and can be made in various ways and for various applications. By way of example, an estimated number of iterations or self joins required to execute a recursive database query (e.g., 12) can be used as a basis to determine or plan an optimal execution plan. For example, given an estimated twelve (12) iterations, an execution plan can be determined for executing at least the first three (3) iterations or for executing every there (3) iterations, whereas for an estimated twenty (21) iterations required to complete a recursive database query, an execution plan can be determined for the first five (5) or six (6) iterations, and so on.
A method, implemented at least partly by a device, for facilitating execution of 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 a 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 configured to:
A non-transitory computer readable storage medium storing at least executable code for facilitating execution of 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 a 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.