Small Selectivities Matter: Lifting the Burden of Empty Samples

6Citations
Citations of this article
8Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Every year more and more advanced approaches to cardinality estimation are published, using learned models or other data and workload specific synopses. In contrast, the majority of commercial in-memory systems still relies on sampling. It is arguably the most general and easiest estimator to implement. While most methods do not seem to improve much over sampling-based estimators in the presence of non-selective queries, sampling struggles with highly selective queries due to limitations of the sample size. Especially in situations where no sample tuple qualifies, optimizers fall back to basic heuristics that ignore attribute correlations and lead to large estimation errors. In this work, we present a novel approach, dealing with these 0-Tuple Situations. It is ready to use in any DBMS capable of sampling, showing a negligible impact on optimization time. Our experiments on real world and synthetic data sets demonstrate up to two orders of magnitude reduced estimation errors. Enumerating single filter predicates according to our estimates reveals 1.3 to 1.8 times faster query responses for complex filters.

Cite

CITATION STYLE

APA

Hertzschuch, A., Moerkotte, G., Lehner, W., May, N., Wolf, F., & Fricke, L. (2021). Small Selectivities Matter: Lifting the Burden of Empty Samples. In Proceedings of the ACM SIGMOD International Conference on Management of Data (pp. 697–709). Association for Computing Machinery. https://doi.org/10.1145/3448016.3452805

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free