DBSP: Automatic Incremental View Maintenance for Rich Query Languages

Author:

Budiu Mihai1,Chajed Tej1,McSherry Frank2,Ryzhyk Leonid1,Tannen Val3

Affiliation:

1. VMware Research

2. Materialize Inc.

3. University of Pennsylvania

Abstract

Incremental view maintenance (IVM) has long been a central problem in database theory. Many solutions have been proposed for restricted classes of database languages, such as the relational algebra, or Datalog. These techniques do not naturally generalize to richer languages. In this paper we give a general, heuristic-free solution to this problem in 3 steps: (1) we describe a simple but expressive language called DBSP for describing computations over data streams; (2) we give a new mathematical definition of IVM and a general algorithm for solving IVM for arbitrary DBSP programs, and (3) we show how to model many rich database query languages using DBSP (including the full relational algebra, queries over sets and multisets, arbitrarily nested relations, aggregation, flatmap (unnest), monotonic and non-monotonic recursion, streaming aggregation, and arbitrary compositions of all of these). SQL and Datalog can both be implemented in DBSP. As a consequence, we obtain efficient incremental view maintenance algorithms for queries written in all these languages.

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference48 articles.

1. [n.d.]. The Aurora Project. http://cs.brown.edu/research/aurora/. Last accessed November 2022. [n.d.]. The Aurora Project. http://cs.brown.edu/research/aurora/. Last accessed November 2022.

2. [n.d.]. sqllogictest. https://www.sqlite.org/sqllogictest/doc/trunk/about.wiki. Last accessed March 2023 . [n.d.]. sqllogictest. https://www.sqlite.org/sqllogictest/doc/trunk/about.wiki. Last accessed March 2023.

3. Martín Abadi , Frank McSherry , and Gordon Plotkin . 2015. Foundations of Differential Dataflow . In Foundations of Software Science and Computation Structures (FoSSaCS). London, UK . http://homepages.inf.ed.ac.uk/gdp/publications/differentialweb.pdf Martín Abadi, Frank McSherry, and Gordon Plotkin. 2015. Foundations of Differential Dataflow. In Foundations of Software Science and Computation Structures (FoSSaCS). London, UK. http://homepages.inf.ed.ac.uk/gdp/publications/differentialweb.pdf

4. Efficient Incrementialization of Correlated Nested Aggregate Queries using Relative Partial Aggregate Indexes (RPAI)

5. Serge Abiteboul , Richard Hull , and Victor Vianu . 1995. Foundations of Databases . Addison-Wesley . http://webdam.inria.fr/Alice/ Serge Abiteboul, Richard Hull, and Victor Vianu. 1995. Foundations of Databases. Addison-Wesley. http://webdam.inria.fr/Alice/

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Recent Increments in Incremental View Maintenance;Companion of the 43rd Symposium on Principles of Database Systems;2024-06-09

2. DBSP: Incremental Computation on Streams and Its Applications to Databases;ACM SIGMOD Record;2024-05-14

3. On The Suitability of Differential Dataflow For Datalog Interpretation In Highly Dynamic Settings;2023 6th Artificial Intelligence and Cloud Computing Conference (AICCC);2023-12-16

4. A Differential Datalog Interpreter;Software;2023-09-21

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3