A view that stores its query output ahead of time. A serverless pipeline maintains it, refreshing it on demand with REFRESH MATERIALIZED VIEW, on a schedule or when upstream data changes, incrementally when it can.
Also called MV.
Read more: Microsoft Learn
In the Ultra Transcenders books
Each book explains Materialized view in context, with comparison tables and the common traps.
Terms in this definition
- View
Shows a system through one chosen group of related concerns. No view is generic; each one is tied to whichever architecture it depicts.
- Serverless
Compute tier for single Azure SQL databases that scales automatically, pauses when idle and charges by the second. It is offered in General Purpose and Hyperscale, not Business Critical, and reserved capacity does not apply.
- Pipeline
Groups activities logically so that, together, they move and transform data, either one after another or side by side; found in both Azure Data Factory and Microsoft Fabric.
- SCHEDULE
SCHEDULE EVERYgives simple repeating intervals andSCHEDULE CRONgives exact times, whileSCHEDULE REFRESHis just another spelling. All of these set refresh timing on a standalone materialized view or streaming table.
Related terms
- CREATE MATERIALIZED VIEW
Used in SQL to declare this kind of view. Pipeline source files use a longer form,
CREATE OR REFRESH MATERIALIZED VIEW. - CREATE OR REFRESH
Brings a materialized view or streaming table into being when it doesn't yet exist, then updates it from whatever its sources currently hold. Streaming tables have
CREATE ... IF NOT EXISTSas another option. - DOUBLE
An 8-byte floating-point type with double precision. A materialized view that sums or averages one may need a full refresh, which casting to
DECIMALavoids. - float
A
FLOATtakes up 4 bytes and has single precision. When exactness counts, convert it toDECIMAL, as totals and averages of it may otherwise make a materialized view refresh in full. - Full refresh
A pipeline run that wipes the stored data and state of a streaming table or materialized view and then rebuilds it from every source record; anything already deleted at the source cannot come back.
- Incremental refresh for materialized views
Brings a materialized view up to date by processing only the changes. It needs a serverless pipeline; anywhere else the view is fully recomputed each time.
- INCREMENTAL STRICT
A
REFRESH POLICYsetting that insists on incremental refresh, so creating or refreshing a materialized view fails if that can't be done. PlainINCREMENTALwould fall back to recomputing in full instead. - Pipeline dataset
Any streaming table or materialized view that a pipeline creates. To give it a new owner, switch the user the pipeline runs as; the change takes effect at the next refresh, and there is no direct transfer.