Loading [MathJax]/extensions/MathMenu.js
Cost-Guided Cardinality Estimation: Focus Where it Matters | IEEE Conference Publication | IEEE Xplore

Cost-Guided Cardinality Estimation: Focus Where it Matters


Abstract:

The increasing prevalence of machine learning techniques has resulted in many works attempting to replace cardinality estimation, a core component of relational query opt...Show More

Abstract:

The increasing prevalence of machine learning techniques has resulted in many works attempting to replace cardinality estimation, a core component of relational query optimizers, with learned models. The majority of those works have trained models to minimize the prediction error between the model's output for a particular query and the true cardinality of that query. However, when cardinality estimators are used for query optimization, not all cardinality estimates are equally important. We present cost-guided cardinality estimation, a technique to train learned cardinality estimators that penalizes models for errors that lead to sub-optimal query plans, and rewards models for estimates that lead to high-quality query plans, regardless of the accuracy of those estimates. In a preliminary experimental study, we show that our technique can reduce average query runtime by 1.7-2×. Surprisingly, models trained with our approach achieve this increase in query performance while having higher prediction error than models trained without our approach, suggesting that prediction error for cardinalities is not necessarily the correct metric to optimize.
Date of Conference: 20-24 April 2020
Date Added to IEEE Xplore: 15 May 2020
ISBN Information:

ISSN Information:

Conference Location: Dallas, TX, USA

Contact IEEE to Subscribe

References

References is not available for this document.