AutoCE:一个用于学习型基数估计的准确且高效的模型顾问
AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality Estimation
AI总结:
研究为不同数据集选择最佳学习型基数估计模型的问题,提出基于深度度量学习与内部学习的模型顾问AutoCE,集成至PostgreSQL并在准确率和功效上显著优于基线。
摘要:
基数估计(CE)在许多数据库相关任务中发挥着至关重要的作用,例如查询生成、代价估计和表连接顺序。近来,我们见证了众多学习型CE模型的出现。然而,在处理具有各种数据分布的数据集时,没有单一的CE模型是无敌的。为了通过准确高效的基数估计来促进数据密集型应用,拥有一种能够明智且高效地为任意数据集选择最合适CE模型的方法非常重要。在本文中,我们研究了一个为各种数据集选择最佳CE模型的新问题。这个问题相当具有挑战性,因为很难捕捉各种数据集与不同模型性能之间的关系。为了解决这个问题,我们提出了一个名为AutoCE的模型顾问,它可以为给定数据集自适应地选择最佳模型。AutoCE的主要贡献是基于学习的模型选择,其中使用深度度量学习来学习推荐模型,并提出内部学习来减少标注开销并提高模型鲁棒性。我们将AutoCE集成到PostgreSQL中,并评估了其对查询优化的影响。结果表明,AutoCE实现了最佳性能(准确率提升12%,比基线高出2.1倍),和功效(比基线高出4倍)。
英文摘要:
Cardinality estimation (CE) plays a crucial role in many database-related tasks such as query generation, cost estimation, and join ordering. Lately, we have witnessed the emergence of numerous learned CE models. However, no single CE model is invincible when it comes to the datasets with various data distributions. To facilitate data-intensive applications with accurate and efficient cardinality estimation, it is important to have an approach that can judiciously and efficiently select the most suitable CE model for an arbitrary dataset. In this paper, we study a new problem of selecting the best CE models for a variety of datasets. This problem is rather challenging as it is hard to capture the relationship from various datasets to the performance of disparate models. To address this problem, we propose a model advisor, named AutoCE, which can adaptively select the best model for a dataset. The main contribution of AutoCE is the learning-based model selection, where deep metric learning is used to learn a recommendation model and incremental learning is proposed to reduce the labeling overhead and improve the model robustness. We have integrated AutoCE into PostgreSQL and evaluated its impact on query optimization. The results showed that AutoCE achieved the best performance (27% better) and outperformed the baselines concerning accuracy (2.1 times better) and efficacy (4.2 times better).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。