Group-By result size 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: 12 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer system having a Group-By operation size estimator comprising: a processor in communication with storage media; said storage media having a database with data records maintained in tables; a selectivity manager in communication with said database, said selectivity manager adapted to calculate a cumulative selectivity based upon an aggregation of selectivity of an individual column in a group of tables in a Group-By operation, wherein the step of calculating a cumulative selectivity is based upon the following mathematical relationship: S ab =S a +S b −(S a ×S b ), wherein S a is a s
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 2010287015 A1 | Method for determining the cost of evaluating conditions | — | 8 |
| US 9,171,043 B2 | Dynamically determining join order | 2015 | 0 |