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
Green, 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
Self-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
General 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
The 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
Incremental query evaluation in a ring of databases
Koch, C. E. (2010) · ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS) · doi:10.1145/1807085.1807100 · Cited by 114
Efficient maintenance of materialized mediated views
Lu, J. J.-Q., Moerkotte, G., Schü, J., & Subrahmanian, V. S. (1995) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/223784.223850 · Cited by 76
Maintenance of datalog materialisations revisited
Motik, B., Nenov, Y., Piro, R., & Horrocks, I. R. (2019) · Artificial Intelligence · doi:10.1016/j.artint.2018.12.004 · Cited by 62
DBToaster: a SQL compiler for high-performance delta processing in main-memory databases
Ahmad, Y., & Koch, C. E. (2009) · Proceedings of the VLDB Endowment · doi:10.14778/1687553.1687592 · Cited by 59
Incremental View Maintenance with Triple Lock Factorization Benefits
Nikolić, M., & Olteanu, D. (2018) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3183713.3183758 · Cited by 58
Incremental evaluation of rules and its relationship to parallelism
Wolfson, O., Dewan, H. M., Stolfo, S. J., & Yemini, Y. (1991) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/115790.115799 · Cited by 38
Explaining outputs in modern data analytics
Chothia, Z., Liagouris, J., McSherry, F., & Roscoe, T. (2016) · Proceedings of the VLDB Endowment · doi:10.14778/2994509.2994530 · Cited by 35
Self-citationMaintaining Triangle Queries under Updates
Kara, A., Ngo, H. Q., Nikolić, M., Olteanu, D., & Zhang, H. (2020) · ACM Transactions on Database Systems · doi:10.1145/3396375 · Cited by 35
Maintenance of stratified databases viewed as a belief revision system
Apt, K. R., & Pugin, J.-M. (1987) · ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS) · doi:10.1145/28659.28674 · Cited by 34
Green, T. J., Ives, Z. G., & Tannen, V. (2011) · Theory of Computing Systems · doi:10.1007/s00224-011-9323-x · Cited by 31
Self-citationShared arrangements: practical inter-query sharing for streaming dataflows
McSherry, F., Lattuada, A., Schwarzkopf, M., & Roscoe, T. (2020) · Proceedings of the VLDB Endowment · doi:10.14778/3401960.3401974 · Cited by 29
Self-citationIncremental View Maintenance For Collection Programming
Koch, C. E., Lupei, D., & Tannen, V. (2016) · ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS) · doi:10.1145/2902251.2902286 · Cited by 26
Self-citationIncremental database rule processing in PARADISER
Dewan, H. M., Ohsie, D., Stolfo, S. J., Wolfson, O., & da Silva, S. (1992) · Journal of Intelligent Information Systems · doi:10.1007/bf00962282 · Cited by 24
Conjunctive queries with inequalities under updates
Idris, M. Z., Ugarte, M., Vansummeren, S., Voigt, H., & Lehner, W. (2018) · Proceedings of the VLDB Endowment · doi:10.14778/3192965.3192966 · Cited by 22
Greco, S., & Molinaro, C. (2015) · Synthesis lectures on data management · doi:10.2200/s00648ed1v01y201505dtm041 · Cited by 22
Efficient Query Processing for Dynamically Changing Datasets
Idris, M. Z., Ugarte, M., Vansummeren, S., Voigt, H., & Lehner, W. (2019) · ACM SIGMOD Record · doi:10.1145/3371316.3371325 · Cited by 20
Maintaining Acyclic Foreign-Key Joins under Updates
Wang, Q., & Yi, K. (2020) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3318464.3380586 · Cited by 20
Certified Graph View Maintenance with Regular Datalog
Bonifati, A., Dumbrava, S., & Arias, E. J. G. (2018) · Theory and Practice of Logic Programming · doi:10.1017/s1471068418000224 · Cited by 19
Fixing Incremental Computation
Alvarez-Picallo, M., Eyers-Taylor, A., Jones, M. P., & Ong, C.-H. L. (2019) · Lecture notes in computer science · doi:10.1007/978-3-030-17184-1_19 · Cited by 16
Reasoning as Axioms Change: Incremental View Maintenance Reconsidered
Kotowski, J., Bry, F., & Brodt, S. (2011) · Lecture notes in computer science · doi:10.1007/978-3-642-23580-1_11 · Cited by 15
Abeysinghe, S., He, Q., & Rompf, T. (2022) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3514221.3517889 · Cited by 13
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
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
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.