Skip to content

Commit 719367f

Browse files
Merge pull request #49603 from JulianePadrao/updates-configure-databases-for-optimal-performance
Updates to configure-databases-for-optimal-performance
2 parents 9982cb0 + 13bd6e4 commit 719367f

16 files changed

+49
-62
lines changed

learn-pr/wwl-data-ai/configure-databases-for-optimal-performance/1-introduction.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Introduction
88
description: "Introduction"
9-
ms.date: 05/05/2022
10-
author: wwlpublish
9+
ms.date: 03/20/2025
10+
author: JulianePadrao
1111
ms.author: jupadrao
1212
ms.topic: unit
1313
azureSandbox: false

learn-pr/wwl-data-ai/configure-databases-for-optimal-performance/2-explore-database-maintenance-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Explore database maintenance checks
88
description: "Explore database maintenance checks"
9-
ms.date: 05/05/2022
10-
author: wwlpublish
9+
ms.date: 03/20/2025
10+
author: JulianePadrao
1111
ms.author: jupadrao
1212
ms.topic: unit
1313
azureSandbox: false

learn-pr/wwl-data-ai/configure-databases-for-optimal-performance/3-describe-database-scoped-configuration-options.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Describe database scoped configuration options
88
description: "Describe database scoped configuration options"
9-
ms.date: 05/05/2022
10-
author: wwlpublish
9+
ms.date: 03/20/2025
10+
author: JulianePadrao
1111
ms.author: jupadrao
1212
ms.topic: unit
1313
azureSandbox: false

learn-pr/wwl-data-ai/configure-databases-for-optimal-performance/4-describe-automatic-tuning.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Describe automatic tuning
88
description: "Describe automatic tuning"
9-
ms.date: 05/05/2022
10-
author: wwlpublish
9+
ms.date: 03/20/2025
10+
author: JulianePadrao
1111
ms.author: jupadrao
1212
ms.topic: unit
1313
azureSandbox: false

learn-pr/wwl-data-ai/configure-databases-for-optimal-performance/5-describe-intelligent-query-processing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Describe intelligent query processing
88
description: "Describe intelligent query processing"
9-
ms.date: 05/05/2022
10-
author: wwlpublish
9+
ms.date: 03/20/2025
10+
author: JulianePadrao
1111
ms.author: jupadrao
1212
ms.topic: unit
1313
azureSandbox: false

learn-pr/wwl-data-ai/configure-databases-for-optimal-performance/6-exercise-detect-correct-fragmentation-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
prefetch-feature-rollout: true
77
title: 'Exercise: Detect and correct fragmentation issues'
88
description: "Exercise: Detect and correct fragmentation issues"
9-
ms.date: 05/05/2022
10-
author: wwlpublish
9+
ms.date: 03/20/2025
10+
author: JulianePadrao
1111
ms.author: jupadrao
1212
ms.topic: unit
1313
azureSandbox: false

learn-pr/wwl-data-ai/configure-databases-for-optimal-performance/7-knowledge-check.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Knowledge check
88
description: "Knowledge check"
9-
ms.date: 05/05/2022
10-
author: wwlpublish
9+
ms.date: 03/20/2025
10+
author: JulianePadrao
1111
ms.author: jupadrao
1212
ms.topic: unit
1313
azureSandbox: false
@@ -22,43 +22,43 @@ quiz:
2222
choices:
2323
- content: "Azure SQL Managed Instance"
2424
isCorrect: false
25-
explanation: "That's incorrect. Azure SQL Managed instance doesn't support automatic index management."
25+
explanation: "Incorrect. Azure SQL Managed instance doesn't support automatic index management."
2626
- content: "Azure SQL Database"
2727
isCorrect: true
28-
explanation: "That's correct. SQL Database supports automatic indexing creation and removal."
28+
explanation: "Correct. SQL Database supports automatic indexing creation and removal."
2929
- content: "SQL Server in an Azure VM"
3030
isCorrect: false
31-
explanation: "That's incorrect. SQL Server in a VM doesn't currently support automatic index management."
31+
explanation: "Incorrect. SQL Server in a VM doesn't currently support automatic index management."
3232
- content: "Which statistics option allows statistics to be updated while a query executes against the object the statistics are based on?"
3333
choices:
3434
- content: "Auto Create Incremental Statistics"
3535
isCorrect: false
36-
explanation: "That's incorrect. With this option, update of statistics will be blocked by query execution."
36+
explanation: "Incorrect. With this option, update of statistics will be blocked by query execution."
3737
- content: "Auto Create Statistics"
3838
isCorrect: false
39-
explanation: "That's incorrect. With this option, update of statistics will be blocked by query execution."
39+
explanation: "Incorrect. With this option, update of statistics will be blocked by query execution."
4040
- content: "Auto Update Statistics Asynchronously"
4141
isCorrect: true
42-
explanation: "That's correct. The 'Auto Update Statistics Asynchronously' option allows for statistics to be updated during query execution."
42+
explanation: "Correct. The 'Auto Update Statistics Asynchronously' option allows for statistics to be updated during query execution."
4343
- content: "Which DMV shows the status of a plan updated by automatic tuning?"
4444
choices:
4545
- content: "sys.dm_db_tuning_recommendations"
4646
isCorrect: true
47-
explanation: "That's correct. This DMV shows the recommendations and the status."
47+
explanation: "Correct. This DMV shows the recommendations and the status."
4848
- content: "sys.dm_db_automatic_tuning_options"
4949
isCorrect: false
50-
explanation: "That's incorrect. This catalog view shows the configuration of the feature."
50+
explanation: "Incorrect. This catalog view shows the configuration of the feature."
5151
- content: "sys.query_store_query"
5252
isCorrect: false
53-
explanation: "That's incorrect. This DMV will just show the history of query executions."
53+
explanation: "Incorrect. This DMV will just show the history of query executions."
5454
- content: "Which component of resource governor allows you to configure limits on system resources?"
5555
choices:
5656
- content: "Workload groups"
5757
isCorrect: false
58-
explanation: "That's incorrect. Workload groups or just an organization role, and don't get assigned resources."
58+
explanation: "Incorrect. Workload groups or just an organization role, and don't get assigned resources."
5959
- content: "Classifier functions"
6060
isCorrect: false
61-
explanation: "That's incorrect. Classifier functions assign connections to workload groups."
61+
explanation: "Incorrect. Classifier functions assign connections to workload groups."
6262
- content: "Resource pools"
6363
isCorrect: true
64-
explanation: "That's correct. Resource pools are where resources are assigned in resource governor."
64+
explanation: "Correct. Resource pools are where resources are assigned in resource governor."

learn-pr/wwl-data-ai/configure-databases-for-optimal-performance/8-summary.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Summary
88
description: "Summary"
9-
ms.date: 05/05/2022
10-
author: wwlpublish
9+
ms.date: 03/20/2025
10+
author: JulianePadrao
1111
ms.author: jupadrao
1212
ms.topic: unit
1313
azureSandbox: false
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
In recent versions of SQL Server, Microsoft has moved more configuration options to the database level, giving you more granularity in how your databases behave. Along with those options, they have introduced intelligent query processing features that allow the query optimizer to make better choices.
22

3-
Even when your database is in the cloud, on-going performance-related maintenance tasks are critical to the overall success of your applications. Whether it's a SQL Server instance in an Azure Virtual Machine or Azure SQL Database, you need to ensure your statistics are current, and your indexes are well organized.
3+
Even when your database is in the cloud, ongoing performance-related maintenance tasks are critical to the overall success of your applications. Whether it's a SQL Server instance in an Azure Virtual Machine or Azure SQL Database, you need to ensure your statistics are current, and your indexes are well organized.
44

55
## Learning objectives
66

77
In this module, you will:
88

99
- Understand database scoped configuration options
10-
1110
- Understand maintenance tasks related to indexing and statistics
12-
1311
- Understand the features of Intelligent Query Processing
14-
1512
- Explore the automatic tuning feature in Azure

learn-pr/wwl-data-ai/configure-databases-for-optimal-performance/includes/2-explore-database-maintenance-checks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ The query optimizer utilizes statistical information from the indexes to attempt
22

33
Within Azure SQL maintenance tasks such as backups and integrity checks are handled for you, and while you may be able to get away with automatic updates keeping your statistics up-to-date, sometimes it's not enough.
44

5-
Having healthy indexes and statistics will ensure that any given plan will perform at optimal efficiency. Index maintenance should be performed regularly as data in your databases changes over time. You could change your index maintenance strategy based on the frequency of modifications to your data.
5+
Having healthy indexes and statistics ensure that any given plan will perform at optimal efficiency. Index maintenance should be performed regularly as data in your databases changes over time. You could change your index maintenance strategy based on the frequency of modifications to your data.
66

77
## Rebuild and reorganize
88

@@ -12,7 +12,7 @@ As data is inserted, updated, and deleted from indexes the logical ordering in t
1212

1313
A reorganization of an index is an online operation that will defrag the leaf level of the index (both clustered and nonclustered). This defragmentation process will physically reorder the leaf-level pages to match the logical order of the nodes from left to right. During this process, the index pages are also compacted based on the configured fillfactor value.
1414

15-
A rebuild can be either online or offline depending on the command executed or the edition of SQL Server being utilized. An offline rebuild process will drop and re-create the index itself. If you can do so online, a new index will be built in parallel to the existing index. Once the new index has been built, the existing one will be dropped and then the new one will be renamed to match the old index name. Keep in mind that the online version will require more space as the new index is built in parallel to the existing index.
15+
A rebuild can be either online or offline depending on the command executed or the edition of SQL Server being utilized. An offline rebuild process will drop and re-create the index itself. If you can do so online, a new index is built in parallel to the existing index. Once the new index has been built, the existing one is dropped and then the new one will be renamed to match the old index name. Keep in mind that the online version requires more space as the new index is built in parallel to the existing index.
1616

1717
The common guidance for index maintenance is:
1818

@@ -38,7 +38,7 @@ Statistics contain information about the distribution of data values within a co
3838

3939
Cardinality estimates are then used by the query optimizer to generate the execution plan. Cardinality estimates also help the optimizer determine what type of operation (for example, index seek or scan) to use to retrieve the data requested.
4040

41-
To see the list of user defined statistics with the last updated date, run the query below:
41+
To see the list of user defined statistics with the last updated date, run the following query:
4242

4343
```sql
4444
SELECT sp.stats_id,
@@ -57,7 +57,7 @@ When you have `AUTO_CREATE_STATISTICS` option to `ON`, the query optimizer creat
5757

5858
These methods provide high-quality query plans for most queries. At times, you may need to create more statistics using `CREATE STATISTICS` statement to improve specific query plans.
5959

60-
It's recommended to keep the `AUTO_CREATE_STATISTICS` option enabled as it will allow the query optimizer to create statistics for query predicate columns automatically.
60+
It's recommended to keep the `AUTO_CREATE_STATISTICS` option enabled as it allows the query optimizer to create statistics for query predicate columns automatically.
6161

6262
Whenever you encounter the following situations, consider creating statistics:
6363

0 commit comments

Comments
 (0)