Query optimizer with join cardinality estimation which mitigates the effects of skew
Abstract
One embodiment relates to a computer-implemented method to estimate a cardinality of a database query. Single table cardinalities are determined after application of selection predicates. In addition, pair-wise join selectivities are estimated without assuming independence between selection and join predicates. Said pair-wise join selectivities are multiplied with said single table cardinalities after application of the selection predicates. Another embodiment relates to a computer apparatus including a cardinality estimator. The cardinality estimator includes computer-readable instructions configured to (a) determine single table cardinalities after application of selection predicates from the database query, (b) estimate pair-wise join selectivities without assuming independence between the selection predicates and join predicates of the database query, and (c) multiply said pair-wise join selectivities with said single table cardinalities after application of the selection predicates. Other embodiments, aspects and features are also disclosed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 8.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A computer-implemented method to estimate a cardinality of a database query, the method comprising: determining single table cardinalities after application of selection predicates; estimating pair-wise join selectivities without assuming independence between selection and join predicates by dividing a pair-wise join cardinality by a product of the single table cardinalities; and multiplying said pair-wise join selectivities with said single table cardinalities after application of the selection predicates.
- Claim 2Depends on #1
The method of claim 1 , wherein the database query comprises the selection predicates and join conditions.
- Claim 3Depends on #1
The method of claim 1 , further comprising: generating a representation of an incidence graph for the query.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (4)
- Cristian Estan, and Jeffrey F. Naughton, "End-Biased Samples for Join Cardinality Estimation", 22nd International Conference on Data Engineering (ICDE 2006), Apr. 2006, 14 sheets.
- Cristian Estan, and Jeffrey F. Naughton, "End-Biased Samples for Join Cardinality Estimation", 22nd International Conference on Data Engineering (ICDE 2006), Apr. 2006, 14 sheets.
- Estan et al., "End-biased Samples for Join Cardinality Estimation", Apr. 2006, pp. 1-14.
- V. Markl, G.M. Lohman, and V. Raman, "LEO: An Autonomic Query Optimizer for DB2", IBM Systems Journal, vol. 42, No. 1, 2003, pp. 98-106.