Apparatus and method for estimating cardinality when data skew is present
Abstract
A cardinality estimator computes an estimated cardinality for a database column using a formula that accounts for skew in the data in the column. The result is an estimate of cardinality that more closely resembles the actual cardinality in the column. The improved cardinality estimate may then be used to make better query optimizations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 20.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus comprising: at least one processor; a memory coupled to the at least one processor; a database table residing in the memory; a cardinality estimator residing in the memory and executed by the at least one processor, the cardinality estimator estimating cardinality of an intermediate dataset that satisfies a query to the database table in a manner that accounts for data skew in the database table; a query optimizer residing in the memory that uses the estimated cardinality from the cardinality estimator to optimize the query; and a frequent values list residing in the memory that c
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗