Consistent histogram maintenance using query feedback
Abstract
A novel method is employed for collecting optimizer statistics for optimizing database queries by gathering feedback from the query execution engine about the observed cardinality of predicates and constructing and maintaining multidimensional histograms. This makes use of the correlation between data columns without employing an inefficient data scan. The maximum entropy principle is used to approximate the true data distribution by a histogram distribution that is as “simple” as possible while being consistent with the observed predicate cardinalities. Changes in the underlying data are readily adapted to, automatically detecting and eliminating inconsistent feedback information in an efficient manner. The size of the histogram is controlled by retaining only the most “important” feedback.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 31 · Forward citations: 6.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A computer-based method of maintaining a histogram comprising a plurality of buckets, said method as implemented in a database system comprising the steps of: gathering query feedback records from a query execution engine; adding new buckets corresponding to said gathered feedback records to said histogram according to a principle of maximum entropy, said principle of maximum entropy approximating a true data distribution by a simple distribution that is consistent with valid query feedback records, said simple distribution approximated by limiting the total number of buckets to a predetermine
- Claim 2Depends on #1
The method according to claim 1 , wherein: said approximating further compri
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (31)
Non-Patent Literature (5)
- Aboulnaga et al. "Self-Tuning Histograms: Building Histograms Without Looking at Data" 1999 ACM SIGMOD Intl. Conf. on Management of Time, pp. 181-192, 1999.
- An improved fast face recognition algorithm based on adjacent pixel intensity difference quantization histogram Fei-Fei Lee,; Koji Kotani,; Qiu Chen,; Tadahiro Ohmi,; Wavelet Analysis and Pattern Recognition, 2008. ICWAPR '08. International Conference on vol. 1, Aug. 30-31, 2008 pp. 316-320 Digital
- Brightness preserving histogram equalization with maximum entropy: a variational perspective Chao Wang; Zhongfu Ye; Consumer Electronics, IEEE Transactions on vol. 51, Issue 4, Nov. 2005 pp. 1326-1334 Digital Object Identifier 10.1109/TCE.2005.1561863.
- Bruno et al. "STHoles: A Multidimensional Workload-Aware Histogram" 2001 ACM SIGMOD Intl. Conf. on Management Data, pp. 211-222, 2001.
- Bruno, Nicolas "Automatic Management of Statistics on Query Expressions in Relational Databases" Thesis Proposal, Apr. 2002.