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

面向连接查询下快速仪表盘的轻量级物化方法

Lightweight Materialization for Fast Dashboards Over Joins

Zezhou Huang, Eugene Wu

AI总结:

针对连接查询开销高导致仪表盘交互延迟的问题,本文提出Treant加速器,结合因子化执行与新型CJT轻量级物化中间结果,实现查询间工作共享,可移植到各类SQL DBMS,性能较现有方案提升1-2个数量级。

摘要:

仪表盘是现代商业智能工具的核心组成部分,为非技术用户提供了访问综合业务数据的接口。随着云技术的发展,越来越多的数据源可为各类分析任务提供丰富的上下文,这催生了对支持大量连接查询的交互式仪表盘的需求。然而,连接操作是数据库管理系统(DBMS)中开销最高的操作之一,使得支持基于连接的交互式仪表盘面临巨大挑战。\n本文提出了Treant,一种面向大规模连接查询的仪表盘加速器。Treant采用因子化查询执行机制处理大规模连接上的聚合查询,但仅靠该机制仍不足以达到交互式响应速度。为解决这一问题,我们利用用户交互的增量特性,提出了校准连接超树(Calibrated Junction Hypertree, CJT)——一种新型数据结构,可在因子化执行过程中对中间结果进行轻量级物化。CJT确保查询计算的工作量与该查询和前一查询的差异程度成正比,而非与查询的整体复杂度成正比。Treant对多个CJT进行管理以实现查询间的工作共享,并可在离线阶段或用户“思考时间”内执行物化操作。Treant以SQL重写中间件的形式实现,可移植到任何基于SQL的DBMS上。我们在单节点和云DBMS上的实验表明,Treant将仪表盘交互速度提升了两个数量级,并且在机器学习增强任务上,相比当前最优的因子化ML系统,性能提升了10倍。

英文摘要:

Dashboards are vital in modern business intelligence tools, providing non-technical users with an interface to access comprehensive business data. With the rise of cloud technology, there is an increased number of data sources to provide enriched contexts for various analytical tasks, leading to a demand for interactive dashboards over a large number of joins. Nevertheless, joins are among the most expensive operations in DBMSes, making the support of interactive dashboards over joins challenging. In this paper, we present Treant, a dashboard accelerator for queries over large joins. Treant uses factorized query execution to handle aggregation queries over large joins, which alone is still insufficient for interactive speeds. To address this, we exploit the incremental nature of user interactions using Calibrated Junction Hypertree (CJT), a novel data structure that applies lightweight materialization of the intermediates during factorized execution. CJT ensures that the work needed to compute a query is proportional to how different it is from the previous query, rather than the overall complexity. Treant manages CJTs to share work between queries and performs materialization offline or during user "think-times." Implemented as a middleware that rewrites SQL, Treant is portable to any SQL-based DBMS. Our experiments on single node and cloud DBMSes show that Treant improves dashboard interactions by two orders of magnitude, and provides 10x improvement for ML augmentation compared to SOTA factorized ML system.

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

↑