On random sampling over joins
Surajit Chaudhuri, Rajeev Motwani, Vivek R. Narasayya · ACM SIGMOD Record · 1999
A major bottleneck in implementing sampling as a primitive relational operation is the inefficiency of sampling the output of a query. It is not even known whether it is possible to generate a sample of a join tree without first evaluating the join tree completely. We undertake a detailed study of this problem and attempt to analyze it in a variety of settings. We present theoretical results explaining the difficulty of this problem and setting limits on the efficiency that can be achieved. Based on new insights into the interaction between join and sampling, we develop join sampling techniques for the settings where our negative results do not apply. Our new sampling algorithms are significantly more efficient than those known earlier. We present experimental evaluation of our techniques on Microsoft's SQL Server 7.0.
Cited by 302 works. doi:10.1145/304181.304206 Open-access PDF
Authors
References
- Human behavior and the principle of least effort
- Randomized Algorithms
- Random sampling with a reservoir
- Online aggregation
- Accurate estimation of the number of tuples satisfying a condition
- Random sampling for histogram construction
- Simple Random Sampling from Relational Databases
- Error-constrained COUNT query evaluation in relational databases
- Efficient sampling strategies for relational database operations
- On the relative cost of sampling for join selectivity estimation