QuickSel: Quick Selectivity Learning with Mixture Models
Not on the map. Why?
Abstract (arXiv)
Estimating the selectivity of a query is a key step in almost any cost-based query optimizer. Most of today's databases rely on histograms or samples that are periodically refreshed by re-scanning the data as the underlying data changes. Since frequent scans are costly, these statistics are often stale and lead to poor selectivity estimates. As an alternative to scans, query-driven histograms have been proposed, which refine the histograms based on the actual selectivities of the observed queries. Unfortunately, these approaches are either too costly to use in practice---i.e., require an exponential number of buckets---or quickly lose their advantage as they observe more queries. In this paper, we propose a selectivity learning framework, called QuickSel, which falls into the query-driven paradigm but does not use histograms. Instead, it builds an internal model of the underlying data, which can be refined significantly faster (e.g., only 1.9 milliseconds for 300 queries). This fast refinement allows QuickSel to continuously learn from each query and yield increasingly more accurate selectivity estimates over time. Unlike query-driven histograms, QuickSel relies on a mixture model and a new optimization algorithm for training its model. Our extensive experiments on two real-world datasets confirm that, given the same target accuracy, QuickSel is 34.0x-179.4x faster than state-of-the-art query-driven histograms, including ISOMER and STHoles. Further, given the same space budget, QuickSel is 26.8%-91.8% more accurate than periodically-updated histograms and samples, respectively.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). First posted on arXiv 26 Dec 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 2; 2023: 0; 2024: 1; 2025: 4; 2026: 1.
12 papers.
- 2021A Unified Deep Model of Learning from both Data and Queries for Cardinality Estimationcited by 21
- 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumerationcited by 14
- 2021Efficient Deep Learning Pipelines for Accurate Cost Estimations Over Large Scale Query Workloadcited by 4
- 2024A Practical Theory of Generalization in Selectivity Learningcited by 3
- 2021Can Deep Neural Networks Predict Data Correlations from Column Names?cited by 2
- 2022Learned-Database Systems Securitycited by 2
- 2025Data-Agnostic Cardinality Learning from Imperfect Workloadscited by 1
- 2022Learning-Based Data Storage [Vision] (Technical Report)cited by 0
- 2025Selective Use of Yannakakis' Algorithm to Improve Query Performance: Machine Learning to the Rescuecited by 0
- 2025A Lightweight Learned Cardinality Estimation Modelcited by 0
- 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDFcited by 0
- 2026Selectivity Estimation for Linear Queries via Online Learningcited by 0
- 2026Selectivity Estimation for Linear Queries via Online Learning3 Jul 2026
- 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDF14 Dec 2025
- 2025A Lightweight Learned Cardinality Estimation Model13 Aug 2025
- 2025Data-Agnostic Cardinality Learning from Imperfect Workloads19 Jun 2025
- 2025Selective Use of Yannakakis' Algorithm to Improve Query Performance: Machine Learning to the Rescue27 Feb 2025
- 2024A Practical Theory of Generalization in Selectivity Learning11 Sep 2024
- 2022Learned-Database Systems Security20 Dec 2022
- 2022Learning-Based Data Storage [Vision] (Technical Report)12 Jun 2022
- 2021A Unified Deep Model of Learning from both Data and Queries for Cardinality Estimation26 Jul 2021
- 2021Can Deep Neural Networks Predict Data Correlations from Column Names?9 Jul 2021
- 2021Efficient Deep Learning Pipelines for Accurate Cost Estimations Over Large Scale Query Workload23 Mar 2021
- 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumeration5 Jan 2021