Skip to content

Commit d1cbe65

Browse files
committed
Update
1 parent d45e028 commit d1cbe65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/sql-data-warehouse/sql-data-warehouse-develop-views.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ Views in SQL Data Warehouse are stored as metadata only. Consequently, the follo
3030
Standard views can be utilized to enforce performance optimized joins between tables. For example, a view can incorporate a redundant distribution key as part of the joining criteria to minimize data movement. Another benefit of a view could be to force a specific query or joining hint. Using views in this manner guarantees that joins are always performed in an optimal fashion avoiding the need for users to remember the correct construct for their joins.
3131

3232
## Materialized view
33-
A materialized view pre-computes, stores, and maintains its data in Azure SQL Data Warehouse just like a table. There's no recomputation needed each time when a materialized view is used. Most of the requirements on a standard view still apply to a materialized view. For details on the materialized view syntax and other requirements, refer to [CREATE MATERIALIZED VIEW AS SELECT](https://docs.microsoft.com/sql/t-sql/statements/create-materialized-view-as-select-transact-sql?view=azure-sqldw-latest).
33+
A materialized view pre-computes, stores, and maintains its data in Azure SQL Data Warehouse just like a table. There's no recomputation needed each time when a materialized view is used. As the data gets loaded into base tables, Azure SQL Data Warehouse synchronously refreshes the materialized views. The query optimizer automatically uses deployed materialized views to improve query performance even if the views are not referenced in the query. Queries benefiting most from materialized views are complex queries (typically queries with joins and aggregations) on large tables that produce small result set.
3434

35-
To use materialized views to improve query performance, check [Performance tuning guidance](https://docs.microsoft.com/azure/sql-data-warehouse/performance-tuning-materialized-views).
35+
For details on the materialized view syntax and other requirements, refer to [CREATE MATERIALIZED VIEW AS SELECT](https://docs.microsoft.com/sql/t-sql/statements/create-materialized-view-as-select-transact-sql?view=azure-sqldw-latest).
36+
37+
For query tuning guidance, check [Performance tuning with materialized views](https://docs.microsoft.com/azure/sql-data-warehouse/performance-tuning-materialized-views).
3638

3739
## Example
3840
A common application pattern is to re-create tables using CREATE TABLE AS SELECT (CTAS) followed by an object renaming pattern whilst loading data. The following example adds new date records to a date dimension. Note how a new table, DimDate_New, is first created and then renamed to replace the original version of the table.

0 commit comments

Comments
 (0)