GRACEFUL:一种用于UDF的学习型成本估算器
GRACEFUL: A Learned Cost Estimator For UDFs
AI总结:
本文提出GRACEFUL,一种学习型成本模型,用于准确估算数据库查询中UDF的执行成本,实现过滤器上拉/下推优化,带来50倍加速,并发布超9万UDF查询的数据集。
摘要:
用户自定义函数(UDF)是现代数据库管理系统(DBMS)中的一项关键特性,能够通过自定义逻辑扩展数据库管理系统的原生功能。然而,将UDF集成到查询优化过程中带来了重大挑战,主要在于难以估算UDF的执行成本。因此,现有数据库管理系统优化器中的成本模型大多忽略UDF或依赖静态假设,导致涉及UDF的查询性能欠佳。在本文中,我们提出了GRACEFUL,一种新颖的学习型成本模型,能够对包含UDF的查询计划进行准确的成本预测,从而支持数据库管理系统中针对UDF的优化决策。例如,如我们在评估中所示,利用我们的成本模型,通过明智的UDF过滤器上拉/下推决策,与始终应用过滤器下推的标准情况相比,我们能够实现50倍的加速。此外,我们发布了一个包含超过90,000个UDF查询的合成数据集,以促进该领域的进一步研究。
英文摘要:
User-Defined-Functions (UDFs) are a pivotal feature in modern DBMS, enabling the extension of native DBMS functionality with custom logic. However, the integration of UDFs into query optimization processes poses significant challenges, primarily due to the difficulty of estimating UDF execution costs. Consequently, existing cost models in DBMS optimizers largely ignore UDFs or rely on static assumptions, resulting in suboptimal performance for queries involving UDFs. In this paper, we introduce GRACEFUL, a novel learned cost model to make accurate cost predictions of query plans with UDFs enabling optimization decisions for UDFs in DBMS. For example, as we show in our evaluation, using our cost model, we can achieve 50x speedups through informed pull-up/push-down filter decisions of the UDF compared to the standard case where always a filter push-down is applied. Additionally, we release a synthetic dataset of over 90,000 UDF queries to promote further research in this area.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。