Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Enhancing histograms by tree-like bucket indices

Published: 01 August 2008 Publication History

Abstract

Histograms are used to summarize the contents of relations into a number of buckets for the estimation of query result sizes. Several techniques have been proposed in the past for determining bucket boundaries which provide accurate estimations. However, while search strategies for optimal bucket boundaries are rather sophisticated, no much attention has been paid for estimating queries inside buckets and all of the above techniques adopt naive methods for such an estimation. This paper focuses on the problem of improving the estimation inside a bucket once its boundaries have been fixed. The proposed technique is based on the addition, to each bucket, of a memory-word additional information (organized into a tree-like index), storing approximate cumulative frequencies in a hierarchical fashion. Both theoretical analysis and experimental results show that the proposed approach improves the accuracy of the estimation inside buckets, w.r.t. both classical approaches (like continuous value assumption and uniform spread assumption) and a number of alternative ways to organize the additional information. The index is later added to state-of-the-art histograms obtaining the non-obvious result that despite the spatial overhead which reduces the number of allowed buckets once the storage space has been fixed, the original methods are strongly improved in terms of accuracy.

References

[1]
Babcock, B., Babu, S., Datar, M., Motwani, R., Widom, J.: Models and issues in data stream system. In: PODS, pp 1-16 (2002)
[2]
Buccafurri, F., Furfaro, F., Saccà, D.: Estimating range queries using aggregate data with integrity constraints: a probabilistic approach. In: Proc. of the 8th International Conference on Database Theory, pp. 390-404 (2001)
[3]
Buccafurri, F., Pontieri, L., Rosaci, D., Saccà, D.: Improving range query estimation on histograms. In: Proceedings of the International Conference on Data Engineering, ICDE, pp. 628-638 (2002)
[4]
Buccafurri, F., Rosaci, D., Saccà, D.: Compressed datacubes for fast olap applications. In: Proceedings of the Int. Conference on Data Warehousing and Knowledge Discovery, DaWaK, pp. 65-77 (1999)
[5]
Chakrabarti, K., Garofalakis, M., Rastogi, R., Shim, K.: Approximate query processing using wavelets. The VLDB J Int J Very Large Data Bases 10(2-3), 199-223 (2001)
[6]
Christodoulakis, S.: Estimating selectivities in databases. PhD Thesis, CSRG Report N. 136, Department of Computer Science, University of Toronto (1981)
[7]
Christodoulakis, S.: Implications of certain assumptions in data-base performance evauation. ACMTrans. Database Syst 9(2), 163- 186 (1984)
[8]
Datar, M., Gionis, A., Indyk, P., Motwani, R.: Maintaining stream statistics over sliding windows: (extended abstract). In: Proceedings of the Thirteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 635-644. Society for Industrial and Applied Mathematics (2002)
[9]
Deligiannakis, A., Roussopoulos, N.: Extended wavelets for multiple measures. In: SIGMOD '03: Proceedings of the 2003 ACM SIGMOD International Conference on Management of Data, pp. 229-240, New York. ACM Press (2003)
[10]
Donjerkovic, D., Ioannidis, Y.E., Ramakrishnan, R.: Dynamic histograms: Capturing evolving data sets. In: ICDE, pp. 86 (2000)
[11]
Garofalakis, M., Gibbons, P.B.: Probabilistic wavelet synopses. ACM Trans. Database Syst. 29(1), 43-90 (2004)
[12]
Guha, S., Koudas, N.: Approximating a data streams for querying and estimation: Algorithms and performance evaluation. In: ICDE, pp. 567-576 (2002)
[13]
Guha, S., Koudas, N., Shim, K.: Data-streams and histograms. In: Proceedings of the Thirty-Third Annual ACM Symposium on Theory of Computing, pp. 471-475. ACM Press (2001)
[14]
Guha, S., Indyk, P., Muthukrishnan, S., Strauss, M.: Histogramming data streams with fast per-item processing. In: Proceedings of the 29th International Colloquium on Automata, Languages and Programming, pp. 681-692. Springer (2002)
[15]
Guha, S., Shim, K., Woo, J.: Rehist: relative error histogram construction algorithms. In: VLDB, pp. 300-311 (2004)
[16]
Ioannidis, Y.: The history of histograms (abridged). In: Proceedings of 29th International Conference on Very Large Data Bases. Morgan Kaufmann, (2003)
[17]
Ioannidis, Y.E., Poosala, V.: Balancing histogram optimality and practicality for query result size estimation. In: Proceedings of the 1995 ACM SIGMOD International Conference on Management of Data, pp. 233-244 (1995)
[18]
Jagadish, H.V., Jin, H., Ooi, B.C., Tan, K.L.: Global optimization of histograms. In: Proceedings of the 2001 ACM SIGMOD International Conference on Management of Data, pp. 223-234. ACM Press (2001)
[19]
Jagadish, H.V., Koudas, N., Muthukrishnan, S., Poosala, V., Sevcik, K.C., Suel, T.: Optimal histograms with quality guarantees In: Proc. 24th Int. Conf. Very Large Data Bases, VLDB, pp. 275-286, 24-27 (1998)
[20]
Karras, P., Mamoulis, N.: One-pass wavelet synopses for maximum-errormetrics. In: VLDB '05: Proceedings of the 31st International Conference on Very Large Data Bases, pp. 421-432. VLDB Endowment (2005)
[21]
Knig, A.C., Weikum, G.: Auto-tuned spline synopses for database statistics managment. In: Proceedings of the 10th Conference on Managment of Data, Pune, India (2000)
[22]
Koudas, N., Muthukrishnan, S., Srivastava, D.: Optimal histograms for hierarchical range queries (extended abstract). In: Proceedings of the Nineteenth ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, pp. 196-204. ACM Press (2000)
[23]
Malvestuto, F.M.: A universal-scheme approach to statistical databases containing homogeneous summary tables. ACM Trans. Data-base Systems (TODS) 18(4), 678-708 (1993)
[24]
Matias, Y., Vitter, J.S., Wang, M.: Wavelet-based histograms for selectivity estimation. In: Proceedings of the 1998 ACM SIGMOD International Conference on Management of Data, pp. 448-459. ACM Press (1998)
[25]
Muthukrishnan, S., Strauss, M.: Rangesum histograms. In: Proceedings of the Fourteenth Annual ACM-SIAM Symposium on Discrete algorithms, pp. 233-242. Society for Industrial and Applied Mathematics (2003)
[26]
Piatetsky-Shapiro, G., Connell, C.: Accurate estimation of the number of tuples satisfying a condition. In: Proceedings of the 1984 ACM SIGMOD International Conference on Management of Data, pp. 256-276. ACM Press (1984)
[27]
Poosala, V.: Histogram-based estimation techniques in data-base systems. PhD dissertation, University of Wisconsin-Madison (1997)
[28]
Poosala, V., Ganti, V., Ioannidis, Y.E.: Approximate query answering using histograms. IEEE Data Eng. Bull. 22, 5-14 (1999)
[29]
Poosala, V., Haas, P.J., Ioannidis, Y.E., Shekita, E.J.: Improved histograms for selectivity estimation of range predicates. In: Proceedings of the 1996 ACM SIGMOD International Conference on Management of Data, pp. 294-305. ACM Press (1996)
[30]
Griffiths Selinger, P., Astrahan, M.M., Chamberlin, D.D., Lorie, R.A., Price, T.G.: Access path selection in a relational database management system. In: Proceedings of the 1979 ACM SIGMOD InternationalConference on Management of Data, pp. 23-34. ACM Press (1979)
[31]
Sitzmann, I., Stuckey, P.J.: Improving temporal joins using histograms. In: Database and Expert Systems Applications, pp. 488-498 (2000)
[32]
1997 U.S. Census Statistics. http://www.census.gov/govs/www/ gid.html
[33]
Thaper, N., Guha, S., Indyk, P., Koudas, N.: Dynamic multidimensional histograms. In: Proceedings of the 2002 ACM SIGMOD International Conference on Management of Data, pp. 428-439. ACM Press (2002)
[34]
Wu, Y.Q., Patel, J.M., Jagadish, H.V.: Using histograms to estimate answer sizes for xml queries. Inf. Syst. 28, 33-59 (2003)
[35]
Zipf, G.K.: Human Behaviour and the Principle of Least Effort. Addison-Wesley, Reading (1949)

Cited By

View all
  • (2020)SUM-optimal histograms for approximate query processingKnowledge and Information Systems10.1007/s10115-020-01450-762:8(3155-3180)Online publication date: 6-Mar-2020
  • (2015)A novel approach for approximate aggregations over arraysProceedings of the 27th International Conference on Scientific and Statistical Database Management10.1145/2791347.2791349(1-12)Online publication date: 29-Jun-2015
  • (2015)LINQ: A Framework for Location-Aware Indexing and Query ProcessingIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2014.236579227:5(1288-1300)Online publication date: 1-May-2015
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image The VLDB Journal — The International Journal on Very Large Data Bases
The VLDB Journal — The International Journal on Very Large Data Bases  Volume 17, Issue 5
August 2008
365 pages

Publisher

Springer-Verlag

Berlin, Heidelberg

Publication History

Published: 01 August 2008

Author Tags

  1. Approximate OLAP
  2. Histograms
  3. Range query estimation

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)27
  • Downloads (Last 6 weeks)9
Reflects downloads up to 13 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2020)SUM-optimal histograms for approximate query processingKnowledge and Information Systems10.1007/s10115-020-01450-762:8(3155-3180)Online publication date: 6-Mar-2020
  • (2015)A novel approach for approximate aggregations over arraysProceedings of the 27th International Conference on Scientific and Statistical Database Management10.1145/2791347.2791349(1-12)Online publication date: 29-Jun-2015
  • (2015)LINQ: A Framework for Location-Aware Indexing and Query ProcessingIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2014.236579227:5(1288-1300)Online publication date: 1-May-2015
  • (2014)Indexing for summary queriesACM Transactions on Database Systems10.1145/250870239:1(1-39)Online publication date: 6-Jan-2014
  • (2012)Synopses for Massive DataFoundations and Trends in Databases10.1561/19000000044:1–3(1-294)Online publication date: 1-Jan-2012
  • (2009)Optimality and scalability in lattice histogram constructionProceedings of the VLDB Endowment10.14778/1687627.16877032:1(670-681)Online publication date: 1-Aug-2009

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media