arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.10983cs.DB
收藏

少即是多:面向数据库系统的轻量级成本估算

Less is More: Towards Lightweight Cost Estimator for Database Systems

Weiping Yu, Siqiang Luo

摘要:

我们提出了FasCo,一个简单而有效的基于学习的估计执行数据库查询计划的成本。与最先进的方法相比,FasCo使用显著更短的训练时间和更低的推理成本,同时实现更高的估计精度。FasCo的有效性来自于嵌入丰富的显式基于执行计划的特征,并结合了一种称为基数校准的新技术。大量的实验结果表明,FasCo的效率比最先进的方法高出几个数量级:在JOB-M基准数据集上,它将训练计划减少了98%,将训练时间从两天多减少到大约八分钟,同时带来更好的准确性。此外,在动态环境中,即使没有再训练,FasCo也可以保持令人满意的精度,缩小了基于学习的估计器和真实系统之间的差距。

英文摘要:

We present FasCo, a simple yet effective learning-based estimator for the cost of executing a database query plan. FasCo uses significantly shorter training time and a lower inference cost than the state-of-the-art approaches, while achieving higher estimation accuracy. The effectiveness of FasCo comes from embedding abundant explicit execution-plan-based features and incorporating a novel technique called cardinality calibration. Extensive experimental results show that FasCo achieves orders of magnitude higher efficiency than the state-of-the-art methods: on the JOB-M benchmark dataset, it cuts off training plans by 98\%, reducing training time from more than two days to about eight minutes while entailing better accuracy. Furthermore, in dynamic environments, FasCo can maintain satisfactory accuracy even without retraining, narrowing the gap between learning-based estimators and real systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑