Skip to content

Commit 30ce56f

Browse files
authored
Merge pull request #49789 from JulianePadrao/update-evaluate-performance-improvements
Updates to [evaluate-performance-improvements]
2 parents ae311a7 + 04bf90b commit 30ce56f

16 files changed

+926
-221
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.evaluate-performance-improvements.introduction
3-
title: Introduction
4-
metadata:
5-
title: Introduction
6-
description: "Introduction"
7-
ms.date: 07/13/2022
8-
author: wwlpublish
9-
ms.author: jupadrao
10-
ms.topic: unit
11-
azureSandbox: false
12-
labModal: false
13-
durationInMinutes: 1
14-
content: |
15-
[!include[](includes/1-introduction.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.evaluate-performance-improvements.introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: "Introduction"
7+
ms.date: 03/31/2025
8+
author: JulianePadrao
9+
ms.author: jupadrao
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 3
14+
content: |
15+
[!include[](includes/1-introduction.md)]
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.evaluate-performance-improvements.describe-wait-statistics
3-
title: Describe wait statistics
4-
metadata:
5-
title: Describe wait statistics
6-
description: "Describe wait statistics"
7-
ms.date: 07/13/2022
8-
author: wwlpublish
9-
ms.author: jupadrao
10-
ms.topic: unit
11-
azureSandbox: false
12-
labModal: false
13-
durationInMinutes: 8
14-
content: |
15-
[!include[](includes/2-describe-wait-statistics.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.evaluate-performance-improvements.describe-wait-statistics
3+
title: Describe wait statistics
4+
metadata:
5+
title: Describe wait statistics
6+
description: "Describe wait statistics"
7+
ms.date: 03/31/2025
8+
author: JulianePadrao
9+
ms.author: jupadrao
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 8
14+
content: |
15+
[!include[](includes/2-describe-wait-statistics.md)]
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.evaluate-performance-improvements.tune-and-maintain-indexes
3-
title: Tune and maintain indexes
4-
metadata:
5-
title: Tune and maintain indexes
6-
description: "Tune and maintain indexes"
7-
ms.date: 07/13/2022
8-
author: wwlpublish
9-
ms.author: jupadrao
10-
ms.topic: unit
11-
azureSandbox: false
12-
labModal: false
13-
durationInMinutes: 6
14-
content: |
15-
[!include[](includes/3-tune-and-maintain-indexes.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.evaluate-performance-improvements.tune-and-maintain-indexes
3+
title: Tune and maintain indexes
4+
metadata:
5+
title: Tune and maintain indexes
6+
description: "Tune and maintain indexes"
7+
ms.date: 03/31/2025
8+
author: JulianePadrao
9+
ms.author: jupadrao
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 6
14+
content: |
15+
[!include[](includes/3-tune-and-maintain-indexes.md)]
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.evaluate-performance-improvements.understand-query-hints
3-
title: Understand query hints
4-
metadata:
5-
title: Understand query hints
6-
description: "Understand query hints"
7-
ms.date: 07/13/2022
8-
author: wwlpublish
9-
ms.author: jupadrao
10-
ms.topic: unit
11-
azureSandbox: false
12-
labModal: false
13-
durationInMinutes: 5
14-
content: |
15-
[!include[](includes/4-understand-query-hints.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.evaluate-performance-improvements.understand-query-hints
3+
title: Understand query hints
4+
metadata:
5+
title: Understand query hints
6+
description: "Understand query hints"
7+
ms.date: 03/31/2025
8+
author: JulianePadrao
9+
ms.author: jupadrao
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 4
14+
content: |
15+
[!include[](includes/4-understand-query-hints.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.evaluate-performance-improvements.explore-performance
3+
title: Explore performance scenarios
4+
metadata:
5+
title: Explore performance scenarios
6+
description: "Explore performance scenarios"
7+
ms.date: 03/31/2025
8+
author: JulianePadrao
9+
ms.author: jupadrao
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 5
14+
content: |
15+
[!include[](includes/4b-explore-performance.md)]
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.evaluate-performance-improvements.exercise-isolate-problem-areas-poor-performing-queries
3-
title: 'Exercise: Isolate problem areas in poorly performing queries'
4-
metadata:
5-
title: 'Exercise: Isolate problem areas in poorly performing queries'
6-
description: "Exercise: Isolate problem areas in poorly performing queries"
7-
ms.date: 07/13/2022
8-
author: wwlpublish
9-
ms.author: jupadrao
10-
ms.topic: unit
11-
azureSandbox: false
12-
labId: 119515
13-
labModal: true
14-
durationInMinutes: 15
15-
content: |
16-
[!include[](includes/5-exercise-isolate-problem-areas-poor-performing-queries.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.evaluate-performance-improvements.exercise-isolate-problem-areas-poor-performing-queries
3+
title: 'Exercise: Isolate problem areas in poorly performing queries'
4+
metadata:
5+
title: 'Exercise: Isolate problem areas in poorly performing queries'
6+
description: "Exercise: Isolate problem areas in poorly performing queries"
7+
ms.date: 03/31/2025
8+
author: JulianePadrao
9+
ms.author: jupadrao
10+
ms.topic: unit
11+
azureSandbox: false
12+
labId: 119515
13+
labModal: true
14+
durationInMinutes: 15
15+
content: |
16+
[!include[](includes/5-exercise-isolate-problem-areas-poor-performing-queries.md)]
Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.evaluate-performance-improvements.knowledge-check
3-
title: Knowledge check
4-
metadata:
5-
title: Knowledge check
6-
description: "Knowledge check"
7-
ms.date: 07/13/2022
8-
author: wwlpublish
9-
ms.author: jupadrao
10-
ms.topic: unit
11-
azureSandbox: false
12-
labModal: false
13-
durationInMinutes: 5
14-
content: |
15-
[!include[](includes/6-knowledge-check.md)]
16-
quiz:
17-
title: "Check your knowledge"
18-
questions:
19-
- content: "What type of index is best used on a data warehouse fact table?"
20-
choices:
21-
- content: "Clustered Columnstore"
22-
isCorrect: true
23-
explanation: "Correct. A clustered columnstore index will provide the best performance for a data warehouse fact table."
24-
- content: "Nonclustered Columnstore"
25-
isCorrect: false
26-
explanation: "Incorrect. Nonclustered columnstore indexes will consume unnecessary space."
27-
- content: "Clustered b-tree"
28-
isCorrect: false
29-
explanation: "Incorrect. A b-tree index won't match the performance of a columnstore index for scan operations."
30-
- content: "Which DMV provides information about server level wait statistics?"
31-
choices:
32-
- content: "sys.dm_db_index_physical_stats"
33-
isCorrect: false
34-
explanation: "Incorrect. This view shows fragmentation for indexes."
35-
- content: "sys.dm_os_wait_stats"
36-
isCorrect: true
37-
explanation: "Correct. This shows the wait stats across the server."
38-
- content: "sys.dm_exec_session_wait_stats"
39-
isCorrect: false
40-
explanation: "Incorrect. This DMV shows waits for a given session, but not across sessions."
41-
- content: "Which DMV can you use to capture the last Actual Execution Plan for a given query?"
42-
choices:
43-
- content: "sys.dm_exec_cached_plans"
44-
isCorrect: false
45-
explanation: "Incorrect. This DMV has the information needed to retrieve the plan from cache."
46-
- content: "sys.dm_exec_query_plan"
47-
isCorrect: false
48-
explanation: "Incorrect. This DMV just has the estimated execution plans that are in the plan cache."
49-
- content: "sys.dm_exec_query_plan_stats"
50-
isCorrect: true
51-
explanation: "Correct. In SQL Server 2019 you can query sys.dm_exec_query_plan_stats to get the last actual execution plan for a query."
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.evaluate-performance-improvements.knowledge-check
3+
title: Knowledge check
4+
metadata:
5+
title: Knowledge check
6+
description: "Knowledge check"
7+
ms.date: 03/31/2025
8+
author: JulianePadrao
9+
ms.author: jupadrao
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 5
14+
content: |
15+
[!include[](includes/6-knowledge-check.md)]
16+
quiz:
17+
title: "Check your knowledge"
18+
questions:
19+
- content: "What type of index is best used on a data warehouse fact table?"
20+
choices:
21+
- content: "Clustered Columnstore"
22+
isCorrect: true
23+
explanation: "Correct. A clustered columnstore index provides the best performance for a data warehouse fact table."
24+
- content: "Nonclustered Columnstore"
25+
isCorrect: false
26+
explanation: "Incorrect. Nonclustered columnstore indexes consume unnecessary space."
27+
- content: "Clustered b-tree"
28+
isCorrect: false
29+
explanation: "Incorrect. A b-tree index won't match the performance of a columnstore index for scan operations."
30+
- content: "Which DMV provides information about server level wait statistics?"
31+
choices:
32+
- content: "sys.dm_db_index_physical_stats"
33+
isCorrect: false
34+
explanation: "Incorrect. This view shows fragmentation for indexes."
35+
- content: "sys.dm_os_wait_stats"
36+
isCorrect: true
37+
explanation: "Correct. This shows the wait stats across the server."
38+
- content: "sys.dm_exec_session_wait_stats"
39+
isCorrect: false
40+
explanation: "Incorrect. This DMV shows waits for a given session, but not across sessions."
41+
- content: "Which DMV can you use to capture the last Actual Execution Plan for a given query?"
42+
choices:
43+
- content: "sys.dm_exec_cached_plans"
44+
isCorrect: false
45+
explanation: "Incorrect. This DMV has the information needed to retrieve the plan from cache."
46+
- content: "sys.dm_exec_query_plan"
47+
isCorrect: false
48+
explanation: "Incorrect. This DMV just has the estimated execution plans that are in the plan cache."
49+
- content: "sys.dm_exec_query_plan_stats"
50+
isCorrect: true
51+
explanation: "Correct. You can query sys.dm_exec_query_plan_stats to get the last actual execution plan for a query."
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.evaluate-performance-improvements.summary
3-
title: Summary
4-
metadata:
5-
title: Summary
6-
description: "Summary"
7-
ms.date: 07/13/2022
8-
author: wwlpublish
9-
ms.author: jupadrao
10-
ms.topic: unit
11-
azureSandbox: false
12-
labModal: false
13-
durationInMinutes: 1
14-
content: |
15-
[!include[](includes/7-summary.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.evaluate-performance-improvements.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: "Summary"
7+
ms.date: 03/31/2025
8+
author: JulianePadrao
9+
ms.author: jupadrao
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 1
14+
content: |
15+
[!include[](includes/7-summary.md)]
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
One of the challenges of the DBA’s role is to evaluate the changes they make to code or data structures on a busy, production system. While tuning a single query in isolation offers easy metrics such as elapsed time or logical reads, making minor tweaks on a busy system may require deeper evaluation.
1+
One of the challenges faced by database administrators is evaluating the changes made to code or data structures on a busy production system. While tuning a single query in isolation provides straightforward metrics such as elapsed time or logical reads, making minor adjustments on a busy system requires a more comprehensive evaluation.
22

3-
## Learning objectives:
3+
In a production environment, numerous factors can influence the performance of a query or data structure. These include concurrent user activity, system resource utilization, and the overall workload. As a result, you must consider the broader context when assessing the effectiveness of their changes. This involves monitoring system performance over time, analyzing query execution plans, and understanding the interactions between different components of the database.
44

5-
At the end of this module, you'll be able to:
5+
Additionally, you need to be aware of potential side effects that may arise from their modifications. For instance, a change that improves the performance of one query might inadvertently degrade the performance of another. Therefore, thorough testing and validation are essential to ensure that any adjustments made don't negatively impact the overall system.
66

7-
- Describe wait statistics
8-
- Understand important aspects when tuning indexes
9-
- Explore when to use query hints
7+
Ultimately, the goal is to achieve a balance between optimizing individual queries and maintaining the stability and efficiency of the entire production system. By adopting a comprehensive approach to evaluation, you can ensure that their changes lead to meaningful improvements without compromising the overall performance of the database.

0 commit comments

Comments
 (0)