Proceedings of the VLDB Endowment · 2019 · 16 citations · 16 references
ComputingComputer ScienceData MiningDatabasesMachine LearningQuery ProcessingResampling MethodsResampling TechniquesSampling MethodsSampling TechniquesSampling TheoryData SamplingFiltersJoinJoin AlgorithmsJoin ProcessingStratificationStratified SamplingUser-defined Functions
We study the problem of efficiently estimating counts for queries involving complex filters, such as user-defined functions, or predicates involving self-joins and correlated subqueries. For such queries, traditional sampling techniques may not be applicable due to the complexity of the filter preventing sampling over joins, and sampling after the join may not be feasible due to the cost of computing the full join. The other natural approach of training and using an inexpensive classifier to estimate the count instead of the expensive predicate suffers from the difficulties in training a good classifier and giving meaningful confidence intervals. In this paper we propose a new method of learning to sample where we combine the best of both worlds by using sampling in two phases. First, we use samples to learn a probabilistic classifier, and then use the classifier to design a stratified sampling method to obtain the final estimates. We theoretically analyze algorithms for obtaining an optimal stratification, and compare our approach with a suite of natural alternatives like quantification learning, weighted and stratified sampling, and other techniques from the literature. We also provide extensive experiments in diverse use cases using multiple real and synthetic datasets to evaluate the quality, efficiency, and robustness of our approach.
16
Joseph M. Hellerstein, Peter J. Haas, Helen J. Wang · 1997 · 928 citations · Full text
Sameer Agarwal, Barzan Mozafari, Aurojit Panda et al. · 2013 · 709 citations
Dynamic sample selection for approximate query processing
Brian Babcock, Surajit Chaudhuri, Gautam Das · 2003 · 259 citations
Sequential sampling procedures for query size estimation
Peter J. Haas, Arun Swami · 1992 · 174 citations
Ripple joins for online aggregation
Peter J. Haas, Joseph M. Hellerstein · 1999 · 170 citations · Full text