DBSP: Automatic Incremental View Maintenance for Rich Query Languages
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.
Integrity signals
Registry
Cites
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.
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?
In the citing paper
“deterministic, incrementally maintainable views over append-only logs are a mature area, with DBSP giving automatic incremental view maintenance for rich query languages [52]”
From Activity Frames: Deterministic Screen-Activity Compilation for Agent Memory and Replay (2026) · cites this paper as [52]
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
(1995) · Choice Reviews Online · doi:10.5860/choice.33-0359 · Cited by 1,754 · cited 14×
“Here we build a non-incremental circuit, which evaluates the Datalog query; in §6 we derive the incremental version of this circuit.”
BackgroundInfluentialGreen, T. J., Karvounarakis, G., & Tannen, V. (2007) · Proceedings of the twenty-sixth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems · doi:10.1145/1265530.1265535 · Cited by 812
Self-citationNaiad: a timely dataflow system
Murray, D. G., McSherry, F., Isaacs, R., Isard, M., Barham, P., & Abadi, M. (2013) · Proceedings of the Twenty-Fourth ACM Symposium on Operating Systems Principles · doi:10.1145/2517349.2522738 · Cited by 656 · cited 1×
“DBSP is tightly related to Differential Dataflow (DD) [28, 31] and its theoretical foundations [2] (and recently [9, 27]).”
BackgroundSelf-citationMaintaining views incrementally
Gupta, A., Mumick, I. S., & Subrahmanian, V. S. (1993) · Proceedings of the 1993 ACM SIGMOD international conference on Management of data · doi:10.1145/170035.170066 · Cited by 654
Maintenance of Materialized Views: Problems, Techniques, and Applications
Gupta, A., & Mumick, I. S. (1999) · Materialized Views · doi:10.7551/mitpress/4472.003.0016 · Cited by 642
Maintenance of Materialized Views: Problems, Techniques, and Applications.
Chaudhuri, S., & Shim, K. (1995) · IEEE Data(base) Engineering Bulletin · Cited by 472
Incremental maintenance of views with duplicates
Griffin, T. G., & Libkin, L. O. (1995) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/223784.223849 · Cited by 319
Begoli, E., Camacho-Rodríguez, J., Hyde, J., Mior, M. J., & Lemire, D. (2018) · Proceedings of the 2018 International Conference on Management of Data · doi:10.1145/3183713.3190662 · Cited by 157 · cited 1×
“The compiler front-end parser and optimizer are based on the Apache Calcite [10] infrastructure.”
MethodGeneral incremental sliding-window aggregation
Tangwongsan, K., Hirzel, M. J., Schneider, S., & Wu, K. (2015) · Proceedings of the VLDB Endowment · doi:10.14778/2752939.2752940 · Cited by 143 · cited 1×
“However, schemes such as Reactive Aggregator [47] can be implemented as custom DBSP operators to bring the amortized cost per update to O (log |DB |).”
BackgroundThe Dynamic Yannakakis Algorithm: Compact and Efficient Query Processing Under Updates
Idris, M. Z., Ugarte, M., & Vansummeren, S. (2017) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3035918.3064027 · Cited by 130 · cited 1×
“DYN [28] and IDYN [29, 30] focus on acyclic conjunctive queries.”
Background
Research works printed but not linked: 15
- [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. -
- 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.
- 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.
- 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.
- 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.
- [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
- [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. -
- [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 . -
- [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. -
- [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/. -
- [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/. -
- [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. -
- [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. -
- 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
- [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
REVITALISE: viRtual bEhaVioral skIlls TrAining for pubLIc SpEaking
Ochs, M., Ristorcelli, M., D’Ambra, A., Casanova, R., & Pergandi, J.-M. (2024) · Proceedings of the ACM International Conference on Intelligent Virtual Agents · doi:10.1145/3652988.3696202 · Cited by 207
Koukaras, P. (2025) · Information · doi:10.3390/info16110932 · Cited by 29
Disaggregated State Management in Apache Flink® 2.0
Mei, Y., Xia, R., Lan, Z., Hu, K., Huang, L., Carbone, P., Lei, Y., Kalavri, V., Yin, H., & Wang, F. Y. (2025) · Proceedings of the VLDB Endowment · doi:10.14778/3750601.3750609 · Cited by 23
“Recent SQL streaming data-base systems [15, 45] also o ff er native state caches and support for remote cloud storage.”
Power, C., Achalla, S., Cottone, R., Macasaet, N., & Hellerstein, J. M. (2024) · Workshop on Principles and Practice of Consistency for Distributed Data (PaPoC) · doi:10.1145/3642976.3653031 · Cited by 17
Optimizing Datalog for the GPU
Sun, Y., Shovon, A. R., Gilray, T., Kumar, S., & Micinski, K. (2025) · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · doi:10.1145/3669940.3707274 · Cited by 15
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
- Semantic Scholar
- d9e616c4a1990ba466a1bd09685f4d0aa98ef979
- 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
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: DBSP: Automatic Incremental View Maintenance for Rich Query Languages. https://app.cochat.ai/papers/10.14778/3587136.3587137
- The paper
- Budiu, M., Chajed, T., McSherry, F., Ryzhyk, L., & Tannen, V. (2023). DBSP: Automatic Incremental View Maintenance for Rich Query Languages. Proceedings of the VLDB Endowment. https://doi.org/10.14778/3587136.3587137
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.