Dynamic Database File Column Statistics for Arbitrary Union Combination
OwnerMichael S. Faunce, Wei Hu +3inventors
InventorsMichael S. Faunce, Wei Hu, Shantan Kethireddy, Andrew Peter Passe, Ulrich Thiemann
Life of this patent
Estimating the term…
Loading patent…
OwnerMichael S. Faunce, Wei Hu +3inventors
InventorsMichael S. Faunce, Wei Hu, Shantan Kethireddy, Andrew Peter Passe, Ulrich Thiemann
Estimating the term…
Embodiments of the invention provide techniques for generating database statistics for optimizing union queries. In general, working sets including samples of values in database columns are persistently maintained in a database. To optimize a union query, the working sets describing the columns included in the union query are combined to generate an ad hoc working set. The ad hoc working set is then used to generate a database statistic describing the combined columns. In another embodiment, working sets may also be maintained for generating statistics for optimizing non-union queries, thus enabling statistics to be refreshed more frequently.
A computer-implemented method for generating a database statistic for optimizing union queries, comprising:
A computer readable storage medium containing a program which, when executed, performs an operation, comprising:
A system, comprising:
Dependencies are inferred from the claim text.