Skip to content

Commit 952acea

Browse files
Merge pull request #229217 from WilliamDAssafMSFT/20230301-synapse-display-estimated-plan
20230301 execution plans for dedicated sql pools
2 parents 729962a + f2103a6 commit 952acea

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

articles/synapse-analytics/sql/develop-materialized-view-performance-tuning.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: craigg
66
ms.service: synapse-analytics
77
ms.topic: conceptual
88
ms.subservice: sql
9-
ms.date: 04/15/2020
9+
ms.date: 03/01/2023
1010
ms.author: xiaoyul
1111
ms.reviewer: nibruno; wiassaf
1212
---
@@ -135,7 +135,10 @@ GROUP BY A, C
135135

136136
**Not all performance tuning requires query change**
137137

138-
The data warehouse optimizer can automatically use deployed materialized views to improve query performance. This support is applied transparently to queries that don't reference the views and to queries that use aggregates unsupported in materialized views creation. No query change is needed. You can check a query's estimated execution plan to confirm if a materialized view is used.
138+
The data warehouse optimizer can automatically use deployed materialized views to improve query performance. This support is applied transparently to queries that don't reference the views and to queries that use aggregates unsupported in materialized views creation. No query change is needed. You can check a query's estimated execution plan to confirm if a materialized view is used.
139+
140+
- For more information on retrieving the actual execution plan, see [Monitor your Azure Synapse Analytics dedicated SQL pool workload using DMVs](/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-manage-monitor#monitor-query-execution).
141+
- You can retrieve an [estimated execution plan through SQL Server Management Studio (SSMS)](/sql/relational-databases/performance/display-the-estimated-execution-plan?view=azure-sqldw-latest&preserve-view=true) or [SET SHOWPLAN_XML](/sql/t-sql/statements/set-showplan-xml-transact-sql?view=azure-sqldw-latest&preserve-view=true).
139142

140143
**Monitor materialized views**
141144

@@ -271,7 +274,9 @@ ORDER BY t_s_secyear.customer_id
271274
OPTION ( LABEL = 'Query04-af359846-253-3');
272275
```
273276

274-
Check the query's estimated execution plan. There are 18 shuffles and 17 joins operations, which take more time to execute. Now let's create one materialized view for each of the three sub-SELECT statements.
277+
Check the query's [estimated execution plan](/sql/relational-databases/performance/display-the-estimated-execution-plan.md). There are 18 shuffles and 17 joins operations, which take more time to execute.
278+
279+
Now, let's create one materialized view for each of the three sub-SELECT statements.
275280

276281
```sql
277282
CREATE materialized view nbViewSS WITH (DISTRIBUTION=HASH(customer_id)) AS
@@ -361,4 +366,6 @@ With materialized views, the same query runs much faster without any code change
361366
## Next steps
362367

363368
For more development tips, see [Synapse SQL development overview](develop-overview.md).
364-
369+
370+
- [Monitor your Azure Synapse Analytics dedicated SQL pool workload using DMVs](/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-manage-monitor).
371+
- [View estimated execution plan](/sql/relational-databases/performance/display-the-estimated-execution-plan.md)

0 commit comments

Comments
 (0)