Unlock this content

Enter your email to unlock this content for free

By continuing, you agree to our Terms of Service and Privacy Notice, and to receive occasional marketing emails.

What's a Materialized View

TL;DR

Materialized views are insert triggers that automatically transform data as it's ingested. They execute a query on each insert and save the results to a target table, allowing you to preprocess data at insert time rather than query time.

What is a Materialized View?

A materialized view is the continuous streaming result of a query saved as a new table. As new data is ingested into a source table, a transformation query executes automatically and saves the transformed results in a target table that you can query like any other table.

This happens at insert time, which is why materialized views are also called insertion triggers. Unlike regular views (which are just saved queries that execute at query time), materialized views store actual data that's computed and updated automatically as new data arrives.

Incremental Processing: Materialized views process only new data as it's inserted, not the entire table. Each insert triggers the query to process only the new rows.

Loading diagram...

Tinybird is not affiliated with, associated with, or sponsored by ClickHouse, Inc. ClickHouse® is a registered trademark of ClickHouse, Inc.

What's a Materialized View | ClickHouse for Developers