Apparatus, system, and method for performing fast approximate computation of statistics on query expressions
Abstract
An apparatus, system, and method are disclosed for performing fast approximate computation of statistics on query expressions in order to improve query optimization within a database management system by accurately and quickly estimating the sizes of intermediate query results. This is accomplished by analyzing a query for join instruction and identifying a fact table and a dimension table within those join instructions. Then, frequency statistics corresponding to distinct values of within the fact table are retrieved from a catalog table. Those frequency statistics are used in combination with a full scan of the dimension table accurately and quickly estimate frequency statistics for an expected join between the fact table and dimension table. The estimated frequency statistics corresponding to the expected join may then be used in such operations as query optimization.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 20 · Forward citations: 11.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer program product comprising a computer readable storage medium having computer usable program code programmed to perform fast approximate computation of statistics on query expressions within a database management system (DBMS) by accurately estimating the sizes of intermediate query results based on frequency statistics, the operations of the computer program product comprising: analyzing a query expression for join instructions; identifying a fact table and a dimension table from the join instructions; retrieving frequency statistics from a catalog table corresponding to distinct v
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (11 of 11 total)
References Cited — Backward Prior Art (20)
Non-Patent Literature (2)
- Bruno et al., "Conditional Selectivity for Statistics on Query Expression", 12 pages, Jun. 2004.
- Patent Cooperative Treaty, International Search Report, International Patent Application No. CA2007/000404, International file date Mar. 14, 2007, Applicant-International Business Machines Corporation, et al, 3 pages.