Incremental view maintenance, open standard SQL

Stop recomputing.
Refresh only what changed.

OpenIVM brings incremental materialized views to DuckDB and Spark. It compiles your views into incremental SQL, so inserts, updates and deletes propagate as deltas and a refresh costs what changed, not what exists.

Built at CWI Amsterdam · SIGMOD 2024 paper

Batch ETL costs scale with your historical data. They should scale with your changed data.

LLMs and tools like dbt generate more data pipelines than ever, and most of them recompute from scratch on every run, while lakehouse ETL workloads often lack efficient incremental refresh.

OpenIVM is an open-source incremental view maintenance (IVM) compiler that makes those pipelines refresh only what changed, inside the engines you already run.

What an IVM engine needs, done properly.

01

Rigor

Delta rules come from each operator's algebra (Z-sets, as in DBSP), not pattern matching: a view is maintained exactly, or classified up front for full refresh.

Z-sets · delta rules
02

State

View and auxiliary state live in ordinary tables, so it works on batch tables, not only streams, and survives restarts.

aux state · delta tables
03

Deletes

Every change is a signed tuple (+1 or −1), so inserts, updates and deletes share one algebra instead of special cases.

+1 / −1 multiplicities

One compiler, many engines.

Your engine

open standard

OpenIVM emits SQL, not engine internals. If your engine speaks SQL and can store a table, it can host an incremental view.

Propose an integration →

Open, reproducible numbers.

A live benchmark fed by ivm-bench: incremental refresh versus full recompute across engines, workloads and delta sizes. Results are published as a static Parquet file and rendered right in your browser.

Explore the benchmark →
live benchmark

Explore performance across engines and commits.

View the dashboard →

OpenIVM: a SQL-to-SQL Compiler for Incremental Computations

SIGMOD Companion 2024 · doi:10.1145/3626246.3654743