Skip to content

Commit a1fdff4

Browse files
committed
updates
1 parent 890b99d commit a1fdff4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

learn-pr/wwl-data-ai/explore-query-performance-optimization/includes/2-understand-query-plans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The execution plan also stores other metadata about the query, such as the datab
3333

3434
Query plans can be viewed in either a graphical representation or a text-based format. Text-based options are invoked with SET commands and apply only to the current connection. These plans can be viewed anywhere you can run T-SQL queries.
3535

36-
Most DBAs prefer graphical plans because they allow you to see the plan as a whole, including the *shape* of the plan. There are several ways to view and save graphical query plans. The most common tool for this purpose is SQL Server Management Studio, but estimated plans can also be viewed in Azure Data Studio. Additionally, there are third-party tools that support viewing graphical execution plans.
36+
Most DBAs prefer graphical plans because they allow you to see the plan as a whole, including the *shape* of the plan. There are several ways to view and save graphical query plans. The most common tool for this purpose is SQL Server Management Studio. Additionally, there are third-party tools that support viewing graphical execution plans.
3737

3838
There are three different types of execution plans.
3939

learn-pr/wwl-data-ai/explore-query-performance-optimization/includes/3-explain-estimated-actual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Actual versus estimated execution plans can be confusing. The difference is that
22

33
:::image type="content" source="../media/module-55-optimize-queries-final-01.png" alt-text="Screenshot of an estimated execution plan generated in SQL Server Management Studio.":::
44

5-
As shown, you can generate an estimated plan in SSMS by clicking the button indicated by the estimated query plan box (or using the keyboard command **Control+L**). You can generate the actual plan by clicking the icon shown (or using the keyboard command **Control+M**), and then executing the query. The two option buttons work differently. The *Include Estimated Query Plan* button responds immediately to any query highlighted (or the entire workspace, if nothing is highlighted), whereas the *Include Actual Query Plan* button requires the query to be executed.
5+
As shown, you can generate an estimated plan in SSMS by selecting the button indicated by the estimated query plan box (or using the keyboard command **Control+L**). You can generate the actual plan by selecting the icon shown (or using the keyboard command **Control+M**), and then executing the query. The two option buttons work differently. The *Include Estimated Query Plan* button responds immediately to any query highlighted (or the entire workspace, if nothing is highlighted), whereas the *Include Actual Query Plan* button requires the query to be executed.
66

77
There's overhead to both executing a query and generating an estimated execution plan, so viewing execution plans should be done carefully in a production environment.
88

@@ -32,7 +32,7 @@ The flow of execution in an execution plan is from right to left, and top to bot
3232

3333
:::image type="content" source="../media/module-55-optimize-queries-final-03.png" alt-text="Screenshot of a tooltip for the Clustered Index Scan operation on the StockItems table.":::
3434

35-
The tooltip highlights the cost and estimates for the estimated plan, and for an actual plan, it includes comparisons to the actual rows and costs. Each operator also has properties that provide more details than the tooltip. By right-clicking on a specific operator, you can select the Properties option from the context menu to see the full property list. This option opens a separate Properties pane in SQL Server Management Studio, which by default is on the right side. Once the Properties pane is open, clicking on any operator populates the Properties list with details for that operator. Alternatively, you can open the Properties pane by clicking on View in the main SQL Server Management Studio menu and choosing Properties.
35+
The tooltip highlights the cost and estimates for the estimated plan, and for an actual plan, it includes comparisons to the actual rows and costs. Each operator also has properties that provide more details than the tooltip. By right-clicking on a specific operator, you can select the Properties option from the context menu to see the full property list. This option opens a separate Properties pane in SQL Server Management Studio, which by default is on the right side. Once the Properties pane is open, selecting any operator populates the **Properties** list with details for that operator. Alternatively, you can open the Properties pane by selecting on **View** in the main SQL Server Management Studio menu and choosing **Properties**.
3636

3737
:::image type="content" source="../media/module-55-optimize-queries-final-04.png" alt-text="Screenshot of the properties for the operator.":::
3838

0 commit comments

Comments
 (0)