Group-by size result estimation
Abstract
A method and system for accurately estimating a result size of a Group-By operation in a relational database. The estimate utilizes the probability of union of the columns involved in the operation, as well as the relative cardinality of each column with respect to the other columns in the operation. In addition, the estimate incorporates the use of table filters when indicated such that table filters are applied prior to determining the size of the tables in the operation, as well as including equivalent columns into the list of columns that are a part of the Group-By operation. Accordingly, the estimate of the result size of the operation includes influencing factors that provide an accurate estimation of system memory requirements.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for estimating a result size of a Group-By operation comprising: organizing a database stored on a computer readable data storage medium with data records maintained in multiple tables and defining a selectivity for each column as a number of distinct values in a column divided by the number of rows in a table; calculating a cumulative selectivity for a Group-By operation based upon aggregation of normalized selectivity of each column in a group of tables in the Group-By operation, including adding to a Group-By list columns equivalent to columns specified in the Group-By operation, s
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗