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

PilotDB:具有先验误差保证的数据库无关在线近似查询处理(技术报告)

PilotDB: Database-Agnostic Online Approximate Query Processing with A Priori Error Guarantees (Technical Report)

Yuxuan Zhu, Tengjun Jin, Stefanos Baziotis, Chengsong Zhang, Charith Mendis, Daniel Kang

AI总结:

针对AQP难以兼顾误差保证、低维护和免修改数据库的问题,提出TAQA与BSAP算法,并在中间件PilotDB中实现,兼容多数据库,实现5%误差下最高126倍加速。

摘要:

经过数十年的近似查询处理(AQP)研究,其在工业界的采用仍然有限。现有方法难以同时提供用户指定的误差保证、消除维护开销以及避免对数据库管理系统进行修改。为解决这些挑战,我们引入了两种新技术:TAQA和BSAP。TAQA是一种两阶段在线AQP算法,对于任意查询都能实现上述三个特性。然而,如果使用标准的行级采样,它可能比精确查询更慢。BSAP通过在TAQA中启用具有统计保证的块级采样来解决这一问题。我们在一个原型中间件系统PilotDB中实现了TAQA和BSAP,该系统兼容所有支持高效块级采样的DBMS。我们在PostgreSQL、SQL Server和DuckDB上使用真实世界基准对PilotDB进行了评估,展示了在5%保证误差下运行时可实现高达126倍的加速。

英文摘要:

After decades of research in approximate query processing (AQP), its adoption in the industry remains limited. Existing methods struggle to simultaneously provide user-specified error guarantees, eliminate maintenance overheads, and avoid modifications to database management systems. To address these challenges, we introduce two novel techniques, TAQA and BSAP. TAQA is a two-stage online AQP algorithm that achieves all three properties for arbitrary queries. However, it can be slower than exact queries if we use standard row-level sampling. BSAP resolves this by enabling block-level sampling with statistical guarantees in TAQA. We simple ment TAQA and BSAP in a prototype middleware system, PilotDB, that is compatible with all DBMSs supporting efficient block-level sampling. We evaluate PilotDB on PostgreSQL, SQL Server, and DuckDB over real-world benchmarks, demonstrating up to 126X speedups when running with a 5% guaranteed error.

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

↑