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

酶:数据工程中的增量视图维护

Enzyme: Incremental View Maintenance for Data Engineering

Databricks, Inc.(Databricks公司);Google, Inc.(谷歌公司)
Ritwik Yadav, Supun Abeysinghe, Min Yang, Jeffrey Helt, Manuel Ung, Yuhong Chen, Melody Hu, William Wei, Yiming Yang, Tom van Bussel, Sourav Chatterji, Indrajit… 展开作者

Ritwik Yadav, Supun Abeysinghe, Min Yang, Jeffrey Helt, Manuel Ung, Yuhong Chen, Melody Hu, William Wei, Yiming Yang, Tom van Bussel, Sourav Chatterji, Indrajit Roy, Paul Lappas, Yannis Papakonstantinou, Tahir Fayyaz, Bilal Aslam, Ross Bunker, Michael Armbrust, Shrikanth Shankar

AI总结:

本文提出Enzyme,一种用于数据工程的增量视图维护引擎,通过自动化刷新策略减少计算成本,提升大规模生产管道的效率。

摘要:

材料化视图是数据库系统的核心构造,用于加速分析查询和优化提取-转换-加载(ETL)工作流。在底层数据演变时保持视图一致性是一个基本挑战,尤其是在高吞吐量和实时设置中。增量视图维护(IVM)已研究数十年,仍持续吸引主要数据库供应商的投资。然而,大多数工业系统要么提供有限的SQL操作符覆盖,要么要求用户手动调整刷新策略。本文提出Enzyme,一种由Databricks开发的IVM引擎,用于驱动Spark声明性管道。它提供内置的端到端增量管道方法,利用材料化视图作为第一类构建块。通过自动化刷新规划,Enzyme减少总拥有成本,使用户专注于业务逻辑而非MV机制。在数千个大规模生产管道上的验证显示了显著的计算效率提升,累计每日计算减少数十亿CPU秒。Enzyme建立在Apache Spark原语之上,添加了一层基于成本的优化层,选择刷新策略用于组织成管道的材料化视图集合。Enzyme的模块化架构旨在跨数据源和查询引擎通用化。我们展示了增量刷新规划和执行的关键设计决策,包括利用材料化视图源中批处理机会的优化。在标准基准上的实验结果表明了在大规模上的显著性能提升。

英文摘要:

Materialized views are a core construct in database systems, used to accelerate analytical queries and optimize batch pipelines for extract-transform-load (ETL) workflows. Maintaining view consistency as underlying data evolves is a fundamental challenge, especially in high-throughput and real-time settings. Incremental view maintenance (IVM) has been studied for decades and continues to attract significant investment from major database vendors. However, most industrial systems either offer limited SQL-operator coverage or require users to hand-tune refresh strategies. This paper presents Enzyme, an IVM engine developed at Databricks to power Spark Declarative Pipelines. It provides a built-in, end-to-end approach to incremental pipelines, utilizing materialized views as first-class building blocks. By automating refresh planning, Enzyme reduces total cost of ownership and lets users focus on business logic rather than MV mechanics. Validation across thousands of large-scale production pipelines spanning diverse application domains has demonstrated substantial computational efficiency gains, yielding a cumulative daily compute reduction of billions of CPU seconds. Built atop Apache Spark primitives, Enzyme adds a cost-based optimization layer that selects refresh strategies for collections of materialized views organized into pipelines. Enzyme's modular architecture is designed to generalize across data sources and query engines. We present key design decisions for incremental refresh planning and execution, including optimizations that exploit batching opportunities across materialized view sources. Experimental results on standard benchmarks demonstrate significant performance improvements at scale.

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

↑