cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Incremental Load on Materialized Views

Dharinip
New Contributor III

Is incremental load possible on Materialized views. I would like to get some tutorials or videos on how to perform incremental refresh on MVs in gold layers. Also is it mandatory to have PKs for performing incremental loads in MVs.

2 REPLIES 2

koji_kawamura
Databricks Employee
Databricks Employee

Hi @Dharinip 

Yes, Databricks materialized views support incremental updates. You can refer this doc page for details. It uses a DLT pipeline internally and a serverless SQL warehouse is required. It utilizes row tracking and PKs are not mandatory.

I created a very simple example notebook to demonstrate updating a materialized view incrementally.

My question is: can materialized views be updated incrementally. For example:

In my case, we store the data in Iron layer and it gets flattened in bronze and silver layer as separate tables. The required transformations happen from silver to gold layer.

All the Iron, bronze and silver layers are streaming tables as SCD type 2 and gets incrementally loaded. 

The Gold layer are materialized views. Every time the pipeline runs, the materialized views are fully refreshed. But we wanted to have those incrementally loaded.
Example:

SILVER        
         
Table: Client        
         
ClientIDClientNameAddressStatusCreatedDateStartDateEnddateRunDate 
1ABCFloridaNew03.15.202503.15.202503.16.202503.15.2025 
1ABCMiamiNew03.16.202503.16.202503.17.202503.16.2025 
1ABCMiamiActive03.17.202503.17.2025NULL03.17.2025 
2QWEKansasActive03.15.202503.15.202503.18.202503.15.2025 
2QWEKansasInactive03.18.202503.18.2025NULL03.18.2025 
3GHJBuffaloActive03.18.202503.18.2025NULL03.18.2025 
         
         
GOLD        
         
Materialized  View: Client       
         
IDNAMEAddressStatusCreatedDateStartDateEnddateRunDate 
1ABCMiamiActive03.17.202503.17.2025NULL03.17.2025These should also be incrementally loaded.
2QWEKansasInactive03.18.202503.18.2025NULL03.18.2025
3GHJBuffaloActive03.18.202503.18.2025NULL03.18.2025



Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now