skip to main content
10.1145/342009.335450acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
Article
Free Access

Congressional samples for approximate answering of group-by queries

Authors Info & Claims
Published:16 May 2000Publication History

ABSTRACT

In large data warehousing environments, it is often advantageous to provide fast, approximate answers to complex decision support queries using precomputed summary statistics, such as samples. Decision support queries routinely segment the data into groups and then aggregate the information in each group (group-by queries). Depending on the data, there can be a wide disparity between the number of data items in each group. As a result, approximate answers based on uniform random samples of the data can result in poor accuracy for groups with very few data items, since such groups will be represented in the sample by very few (often zero) tuples.

In this paper, we propose a general class of techniques for obtaining fast, highly-accurate answers for group-by queries. These techniques rely on precomputed non-uniform (biased) samples of the data. In particular, we propose congressional samples, a hybrid union of uniform and biased samples. Given a fixed amount of space, congressional samples seek to maximize the accuracy for all possible group-by queries on a set of columns. We present a one pass algorithm for constructing a congressional sample and use this technique to also incrementally maintain the sample up-to-date without accessing the base relation. We also evaluate query rewriting strategies for providing approximate answers from congressional samples. Finally, we conduct an extensive set of experiments on the TPC-D database, which demonstrates the efficacy of the techniques proposed.

References

  1. AGP99a.S. Acharya, P. B. Gibbons, and V. Poosala. Aqua: A fast decision support system using approximate query answers. In Proc. 25th International Conf. on Very Large Databases, pages 754-757, September 1999. Demo paper. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. AGP99b.S. Acharya, P. B. Gibbons, and V. Poosala. Congressional samples for approximate answering of group-by queries. Technical report, Bell Laboratories, Murray Hill, New Jersey, November 1999.Google ScholarGoogle Scholar
  3. AGPR99.S. Acharya, P. B. Gibbons, V. Poosala, and S. Ramaswamy. Join synopses for approximate query answering. In Proc. ACM SIGMOD International Conf. on Management of Data, pages 275-286, June 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. CD97.S. Chaudhuri and U. Dayal. An overview of data warehousing and OLAP technology. SIGMOD Record, 26(1):65-74, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. CMN99.S. Chaudhuri, R. Motwani, and V. Narasayya. On random sampling over joins. In Proc. ACM SIGMOD International Conf. on Management of Data, pages 263-274, June 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Coc77.W. G. Cochran. Sampling Techniques. John Wiley & Sons, New York, third edition, 1977.Google ScholarGoogle Scholar
  7. CS94.S. Chaudhuri and K. Shim. Including group-by in query optimization. In Proc. 20th International Conf. on Very Large Data Bases, pages 354-366, September 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. CS95.S. Chaudhuri and K. Shim. An overview of cost-based optimization of queries with aggregates. IEEE Data Englneerlng Bulletin, 18(3):3-9, 1995.Google ScholarGoogle Scholar
  9. GM98.P. B. Gibbons and Y. Matins. New sampling-based summary statistics for improving approximate query answers. In Proe. ACM SIGMOD International Conf. on Management of Data, pages 331-342, June 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. HH99.P. Haas and J. Hellerstein. Ripple joins foe online aggregation. In Proc. ACM SIGMOD International Conf. on Management of Data, pages 287-298, June 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. HHW97.J. M. Hellerstein, P. J. Haas, and H. J. Wang. Online aggregation. In Proe. ACM SIGMOD International Conf. on Management of Data, pages 171-182, May 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. IP99.Y. Ioannidis and V. Poosala. Histogram-based techniques for approximating set-vMued query-answers. In Proe. 25th International Conf. on Very Large Databases, pages 174-185, September 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Kim96.R. Kimball. The Data Warehouse Tookit. John Wiley and Sons Inc., 1996.Google ScholarGoogle Scholar
  14. Olk93.F. Olken. Random Sampling from Databases. PhD thesis, Computer Science, U.C. Berkeley, April 1993.Google ScholarGoogle Scholar
  15. PIHS96.V. Poosala, Y. E. Ioannidis, P. J. Haas, and E. J. Shekita. Improved histograms for selectivity estimation of range predicates. In Proc. A CM SIGMOD International Conf. on Management of Data, pages 294-305, June 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. SAC+79.P. G. Selinger, M. M. Astrahan, D. D. Chamberlin, R. A. Lorie, and T. T. Price. Access path selection in a relational database management system. In Proc. ACM SIGMOD International Conf. on Management of Data, pages 23-34, June 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Sch97.D. Schneider. The ins & outs (and everything in between) of data warehousing. Tutorial in the 23rd International Conf. on Very Large Data Bases, August 1997.Google ScholarGoogle Scholar
  18. TPC99.Transaction processing performance council (TPC). TPC-D Benchmark Version 2.0, February 1999. URL: www. tpc. org.Google ScholarGoogle Scholar
  19. VW99.J. S. Vitter and M. Wang. Approximate computation of multidimensional aggregates of sparse data using wavelets. In Proc. ACM SIGMOD International Conf. on Management of Data, pages 193-204, June 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Congressional samples for approximate answering of group-by queries

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in
          • Published in

            cover image ACM Conferences
            SIGMOD '00: Proceedings of the 2000 ACM SIGMOD international conference on Management of data
            May 2000
            604 pages
            ISBN:1581132174
            DOI:10.1145/342009

            Copyright © 2000 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 16 May 2000

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • Article

            Acceptance Rates

            SIGMOD '00 Paper Acceptance Rate42of248submissions,17%Overall Acceptance Rate785of4,003submissions,20%

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader