Reducing the domain of a subquery by retrieving constraints from the outer query
AssigneeTableau Software, Inc.
InventorsThomas Neumann, Viktor Leis, Alfons Kemper
Life of this patent
Estimating the term…
Loading patent…
AssigneeTableau Software, Inc.
InventorsThomas Neumann, Viktor Leis, Alfons Kemper
Estimating the term…
A database engine receives a human-readable database query that includes a subquery, and parses the database query to build an operator tree. The operator tree includes a subtree corresponding to the subquery. The database engine estimates the number of rows that will accessed when the subtree is executed and estimates the fraction of the cardinality of rows that will be filtered out by subsequent operations in the operator tree. In accordance with a determination that the estimated fraction exceeds a first threshold, the database engine inserts a domain constraint into the subtree that restricts rows retrieved by execution of the subtree, thereby forming a modified operator tree. The database engine executes the modified operator tree to form a final result set corresponding to the database query and returns the final result set.
A database engine, comprising:
A method of retrieving data from a database, comprising:
A non-transitory computer readable storage medium storing one or more programs configured for execution by a computer system having one or more processors and memory, the one or more programs comprising instructions for:
Dependencies are inferred from the claim text.