CoChat

DBSP: Automatic Incremental View Maintenance for Rich Query Languages

Budiu, Mihai, Chajed, Tej, McSherry, Frank, Ryzhyk, Leonid, Tannen, Val · 2023 · Proceedings of the VLDB Endowment

The DOI matches its Crossref record; 32 of the 32 references it cites were found in a registry or an index.

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.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.14778/3587136.3587137

Cites

32 of 32 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 15

  1. [8] Stefano Ceri and Jennifer Widom. Deriving production rules for incremental view maintenance. In Guy M. Lohman, Amílcar Sernadas, and Rafael Camps, editors, International Conference of Very Large Data Bases (VLDB) , pages 577589, Barcelona, Spain, 1991. URL: http://www.vldb.org/conf/1991/P577.PDF. -
  2. Surajit Chaudhuri , Ravi Krishnamurthy , Spyros Potamianos , and Kyuseok Shim . 1995 . Optimizing Queries with Materialized Views. In International Conference on Data Engineering (ICDE). 190--200 . Surajit Chaudhuri, Ravi Krishnamurthy, Spyros Potamianos, and Kyuseok Shim. 1995. Optimizing Queries with Materialized Views. In International Conference on Data Engineering (ICDE). 190--200.
  3. Rada Chirkova and Jun Yang . 2012. Materialized Views . Now Publishers Inc ., Hanover, MA, USA . Rada Chirkova and Jun Yang. 2012. Materialized Views. Now Publishers Inc., Hanover, MA, USA.
  4. Leonardo de Moura , Soonho Kong , Jeremy Avigad , Floris van Doorn , and Jakob von Raumer . 2015 . The Lean Theorem Prover. In International Conference on Automated Deduction (CADE-25) . Berlin, Germany. Leonardo de Moura, Soonho Kong, Jeremy Avigad, Floris van Doorn, and Jakob von Raumer. 2015. The Lean Theorem Prover. In International Conference on Automated Deduction (CADE-25). Berlin, Germany.
  5. J. Nathan Foster , Ravi Konuru , Jerome Simeon , and Lionel Villard . 2008 . An Algebraic Approach to XQuery View Maintenance . In ACM SIGPLAN Workshop on Programming Languages Technologies for XML . San Francisco, CA. J. Nathan Foster, Ravi Konuru, Jerome Simeon, and Lionel Villard. 2008. An Algebraic Approach to XQuery View Maintenance. In ACM SIGPLAN Workshop on Programming Languages Technologies for XML. San Francisco, CA.
  6. [16] Ashish Gupta, Inderpal Singh Mumick, and V. S. Subrahmanian. Maintaining views incrementally. In ACM SIGMOD International conference on Management of data (SIGMOD) , pages 157-166, Washington, DC, May 26-28 1993. ACM Press. doi:10.1145/170035.170066 . - · DOI · Paper page
  7. [17] John V. Harrison and Suzanne W. Dietrich. Maintenance of materialized views in a deductive database: An update propagation approach. In Kotagiri Ramamohanarao, James Harland, and Guozhu Dong, editors, Workshop on Deductive 18. Databases , volume CITRI/TR-92-65 of Technical Report , pages 56-65, Washington, D.C., November 14 1992. Department of Computer Science, University of Melbourne. -
  8. [18] Hojjat Jafarpour, Rohan Desai, and Damian Guy. KSQL: Streaming SQL engine for Apache Kafka. In International Conference on Extending Database Technology (EDBT) , pages 524-533, Lisbon, Portugal, March 26-29 2019. URL: http://openproceedings.org/2019/conf/edbt/EDBT19\_paper\_329.pdf . -
  9. [19] Steven Dexter Johnson. Synthesis of Digital Designs from Recursion Equations . PhD thesis, Indiana University, May 1983. https://help.luddy.indiana.edu/techreports/TRNNN.cgi?trnum=TR141. -
  10. [24] Edward A. Lee. Multidimensional streams rooted in dataflow. In IFIP Working Conference on Architectures and Compilation Techniques for Fine and Medium Grain Parallelism , Orlando, FL, January 20-22 1993. URL: https://ptolemy.berkeley.edu/publications/papers/93/mdsdf/. -
  11. [25] Edward A. Lee and Thomas M. Parks. Dataflow process networks. Proceedings of the IEEE , pages 773-801, May 1995. URL: https://ptolemy.berkeley.edu/publications/papers/95/processNets/. -
  12. [28] Frank McSherry, Derek Gordon Murray, Rebecca Isaacs, and Michael Isard. Differential dataflow. In Conference on Innovative Data Systems Research (CIDR) , Asilomar, CA, January 6-9 2013. URL: http://cidrdb.org/cidr2013/Papers/CIDR13\_Paper111.pdf. -
  13. [30] Boris Motik, Yavor Nenov, Robert Edgar Felix Piro, and Ian Horrocks. Incremental update of Datalog< materialisation: the backward/forward algorithm. In Conference on Artificial Intelligence (AAAI) , pages 1560-1568, Austin, Texas, January 25-30 2015. AAAI Press. URL: http://www.aaai.org/ocs/index.php/AAAI/AAAI15/paper/view/9660. -
  14. Leonid Ryzhyk and Mihai Budiu . 2019. Differential Datalog . In Datalog 2.0. Philadelphia, PA , 12 pages. http://budiu.info/work/ddlog.pdf Leonid Ryzhyk and Mihai Budiu. 2019. Differential Datalog. In Datalog 2.0. Philadelphia, PA, 12 pages. http://budiu.info/work/ddlog.pdf
  15. [33] Martin Staudt and Matthias Jarke. Incremental maintenance of externally materialized views. In International Conference of Very Large Data Bases (VLDB) , pages 75-86, Mumbai (Bombay), India, September 3-6 1996. URL: http://www.vldb.org/conf/1996/P075.PDF. -

Cited by

See all 69

Metadata

Authors
Budiu, M., Chajed, T., McSherry, F., Ryzhyk, L., & Tannen, V.
Affiliations
  • VMware (United States) (US)
  • Materialize Inc.
  • University of Pennsylvania (US)
Venue
Proceedings of the VLDB Endowment
Published
2023-03
Volume
16
Issue
7
Pages
1601-1614
ISSN
2150-8097 (ISSN-L)
OpenAlex
W4375928209
Cited by
31
References
31
Citations by year
2026: 9 · 2025: 11 · 2024: 5 · 2023: 6
FWCI
3.44
Type
journal article
Language
en
Open access
closed
Locations
Proceedings of the VLDB Endowment (publishedVersion)
Topics
  • Physical Sciences › Computer Science › Information Systems › Advanced Database Systems and Queries
  • Physical Sciences › Computer Science › Information Systems › Data Management and Algorithms
  • Physical Sciences › Computer Science › Artificial Intelligence › Data Stream Mining Techniques
Keywords
incremental view maintenance, data streams, relational algebra, Datalog, nested relations, aggregate queries, SQL

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.