Eliminating unnecessary statistics collections for query optimization
AssigneeTeradata US, Inc.
InventorsLouis M. Burger, Frank Roderic Vandervort
Life of this patent
Estimating the term…
Loading patent…
AssigneeTeradata US, Inc.
InventorsLouis M. Burger, Frank Roderic Vandervort
Estimating the term…
A method and system for eliminating unnecessary statistics collections for query optimization in a database stored on a computer. Statistics are unnecessary when a re-generated query execution plan that does not use the statistics is equivalent to an original query execution plan that uses the statistics. To determine this, an original query execution plan is created for each query in a specified workload using the statistics in the database. A search is performed of the statistics in order to enumerate one or more candidate sets of statistics to be eliminated. One or more of the candidate sets of statistics are removed from consideration prior to creating the re-generated query execution plan for each query in the specified workload. The re-generated query execution plan, which was created with one or more of the candidate sets of statistics removed from consideration, is compared with the original query execution plan, which was created using the statistics, in order to determine whether the re-generated query execution plan and the original query execution plan are equivalent. The one or more of the candidate sets of statistics removed from consideration are identified as unnecessary when the re-generated query execution plan and the original query execution plan are equivalent.
A computer-implemented method of managing statistics collections stored on a computer readable storage medium and used to optimize execution of queries associated with a database, the computer-implemented method comprising:
A computer-implemented method managing statistics collections used to optimize execution of queries associated with a database, the computer-implemented method comprising:
A system for managing statistics collections used to optimize execution of queries associated with a database, wherein the system includes one or more processors operable to:
A system for managing statistics collections used to optimize execution of queries associated with a database, wherein the system includes one or more processors operable to:
A non-transient computer readable storage medium storing at least executable computer code to manage statistics collections used to optimize execution of queries associated with a database, wherein the executable computer code includes:
Dependencies are inferred from the claim text.