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

具有有界Q误差的可更新数据驱动基数估计器

Updateable Data-Driven Cardinality Estimator with Bounded Q-error

Yingze Li, Xianglong Liu, Hongzhi Wang, Kaixin Zhang, Zixuan Wang

AI总结:

本文提出ICE,一种基于多维索引的数据驱动基数估计器,通过借鉴索引的快速训练与精确分布特性,实现单表场景下即时元组级更新,并在精度、更新速度和训练时间上显著优于现有实时查询驱动模型。

摘要:

现代基数估计器难以应对数据更新。本研究在单表范围内解决这一挑战。我们提出了ICE,一种基于索引的基数估计器,是首个支持即时、元组级更新的数据驱动估计器。ICE从多维索引中汲取了两个关键经验,并将其应用于解决动态场景下的基数估计问题:(1)索引具备在海量多维数据中快速训练和无缝更新的能力。(2)索引提供精确的数据分布,与最新数据库版本保持同步。这些洞察赋予索引成为高精度、数据驱动模型的能力,使其能够快速适应数据更新,并在查询测试期间对分布外挑战具有鲁棒性。为使单一索引支持基数估计,我们设计了精密的训练、更新和估计算法,并分析了无偏性与方差。大量实验证明了ICE的优越性。ICE在多样化工作负载下提供精确估计和快速更新/构建。与最先进的实时查询驱动模型相比,ICE具有更高的精度(精确2-3个数量级)、更快的更新速度(快4.7-6.9倍)以及显著缩短的训练时间(最快可达1-3个数量级的加速)。

英文摘要:

Modern Cardinality Estimators struggle with data updates. This research tackles this challenge within single-table. We introduce ICE, an Index-based Cardinality Estimator, the first data-driven estimator that enables instant, tuple-leveled updates. ICE has learned two key lessons from the multidimensional index and applied them to solve cardinality estimation in dynamic scenarios: (1) Index possesses the capability for swift training and seamless updating amidst vast multidimensional data. (2) Index offers precise data distribution, staying synchronized with the latest database version. These insights endow the index with the ability to be a highly accurate, data-driven model that rapidly adapts to data updates and is resilient to out-of-distribution challenges during query testing. To make a solitary index support cardinality estimation, we have crafted sophisticated algorithms for training, updating, and estimating, analyzing unbiasedness and variance. Extensive experiments demonstrate the superiority of ICE. ICE offers precise estimations and fast updates/construction across diverse workloads. Compared to state-of-the-art real-time query-driven models, ICE boasts superior accuracy (2-3 orders of magnitude more precise), faster updates (4.7-6.9 times faster), and significantly reduced training time (up to 1-3 orders of magnitude faster).

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

↑