NeuroCard: One Cardinality Estimator for All Tables

arXiv:2006.08109 First posted 2020-06-15 v2 VLDB 2021
Cite this paper ×
BibTeX
@misc{yang2020neurocard,
  title = {NeuroCard: One Cardinality Estimator for All Tables},
  author = {Zongheng Yang and Amog Kamsetty and Sifei Luan and Eric Liang and Yan Duan and Xi Chen and Ion Stoica},
  year = {2020},
  eprint = {2006.08109},
  archivePrefix = {arXiv},
  primaryClass = {cs.DB},
  url = {https://arxiv.org/abs/2006.08109}
}
APA
Yang, Z., Kamsetty, A., Luan, S., Liang, E., Duan, Y., Chen, X., & Stoica, I. (2020). NeuroCard: One Cardinality Estimator for All Tables [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2006.08109
GB/T 7714
YANG Z, KAMSETTY A, LUAN S, et al. NeuroCard: One Cardinality Estimator for All Tables[EB/OL]. (2020-06-15)[2026-11-29]. https://arxiv.org/abs/2006.08109.

Abstract

Query optimizers rely on accurate cardinality estimates to produce good execution plans. Despite decades of research, existing cardinality estimators are inaccurate for complex queries, due to making lossy modeling assumptions and not capturing inter-table correlations. In this work, we show that it is possible to learn the correlations across all tables in a database without any independence assumptions. We present NeuroCard, a join cardinality estimator that builds a single neural density estimator over an entire database. Leveraging join sampling and modern deep autoregressive models, NeuroCard makes no inter-table or inter-column independence assumptions in its probabilistic modeling. NeuroCard achieves orders of magnitude higher accuracy than the best prior methods (a new state-of-the-art result of 8.5x maximum error on JOB-light), scales to dozens of tables, while being compact in space (several MBs) and efficient to construct or update (seconds to minutes).

Post #1 · the paper

Discussion

No comments yet. Start the discussion!