Skip to content

Commit 779aff4

Browse files
Replaced spaces with tabs
1 parent 1d9a836 commit 779aff4

1 file changed

Lines changed: 47 additions & 47 deletions

File tree

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
11
{
22
"checks":[
33
{
4-
"target": {
5-
"type": "Database",
6-
"platform": "Windows"
7-
},
8-
"id": "Custom_SqlServer.Database.AutoUpdateStats",
9-
"tags": [ "InternalBestPracticeSet", "Performance" ],
10-
"displayName": "Auto-Update Statistics should be on",
11-
"description": "The query optimizer needs up-to-date and accurate statistics in order to generate good plans. In most cases, it's best to let SQL Server maintain the statistics. If you turn 'Auto Create Stats' and 'Auto Update Stats' off, then it is up to you to keep the statistics up-to-date somehow. Failure to do so will lead to poor query performance. Most applications should have these options ON.\n \n When the Auto Update Statistics setting is ON, the query optimizer updates statistics when they are used by a query and when they might be out-of-date. Statistics become out-of-date after insert, update, delete, or merge operations change the data distribution in the table or indexed view. The query optimizer determines when statistics might be out-of-date by counting the number of data modifications since the last statistics update and comparing the number of modifications to a threshold. The threshold is based on the number of rows in the table or indexed view. The query optimizer checks for out-of-date statistics before compiling a query and before executing a cached query plan. Before compiling a query, the query optimizer uses the columns, tables, and indexed views in the query predicate to determine which statistics might be out-of-date. Before executing a cached query plan, the Database Engine verifies that the query plan references up-to-date statistics. The AUTO_UPDATE_STATISTICS option applies to statistics created for indexes, single-columns in query predicates, and statistics that are created by using the CREATE STATISTICS statement. This option also applies to filtered statistics.",
12-
"message": "Turn Auto-Update Statistics option on to improve query performance.",
13-
"helpLink": "https://blogs.msdn.microsoft.com/buckwoody/2009/08/18/sql-server-best-practices-auto-create-and-auto-update-statistics-should-be-on-most-of-the-time/",
14-
"probes": [ "DatabaseConfiguration" ],
15-
"condition": "@is_auto_update_stats_on"
4+
"target": {
5+
"type": "Database",
6+
"platform": "Windows"
7+
},
8+
"id": "Custom_SqlServer.Database.AutoUpdateStats",
9+
"tags": [ "InternalBestPracticeSet", "Performance" ],
10+
"displayName": "Auto-Update Statistics should be on",
11+
"description": "The query optimizer needs up-to-date and accurate statistics in order to generate good plans. In most cases, it's best to let SQL Server maintain the statistics. If you turn 'Auto Create Stats' and 'Auto Update Stats' off, then it is up to you to keep the statistics up-to-date somehow. Failure to do so will lead to poor query performance. Most applications should have these options ON.\n \n When the Auto Update Statistics setting is ON, the query optimizer updates statistics when they are used by a query and when they might be out-of-date. Statistics become out-of-date after insert, update, delete, or merge operations change the data distribution in the table or indexed view. The query optimizer determines when statistics might be out-of-date by counting the number of data modifications since the last statistics update and comparing the number of modifications to a threshold. The threshold is based on the number of rows in the table or indexed view. The query optimizer checks for out-of-date statistics before compiling a query and before executing a cached query plan. Before compiling a query, the query optimizer uses the columns, tables, and indexed views in the query predicate to determine which statistics might be out-of-date. Before executing a cached query plan, the Database Engine verifies that the query plan references up-to-date statistics. The AUTO_UPDATE_STATISTICS option applies to statistics created for indexes, single-columns in query predicates, and statistics that are created by using the CREATE STATISTICS statement. This option also applies to filtered statistics.",
12+
"message": "Turn Auto-Update Statistics option on to improve query performance.",
13+
"helpLink": "https://blogs.msdn.microsoft.com/buckwoody/2009/08/18/sql-server-best-practices-auto-create-and-auto-update-statistics-should-be-on-most-of-the-time/",
14+
"probes": [ "DatabaseConfiguration" ],
15+
"condition": "@is_auto_update_stats_on"
1616
},
1717
{
18-
"target": {
19-
"type": "Database",
20-
"version": "[12.0,)",
21-
"platform": "Windows",
22-
"name": { "not": "/^(master|msdb)$/" }
23-
},
24-
"id": "Custom_SqlServer.Database.QueryStoreOn",
25-
"tags": [ "InternalBestPracticeSet", "Performance" ],
26-
"displayName": "Query Store should be on",
27-
"description": "The SQL Server Query Store feature provides you with insight on query plan choice and performance. It simplifies performance troubleshooting by helping you quickly find performance differences caused by query plan changes. Query Store automatically captures a history of queries, plans, and runtime statistics, and retains these for your review. It separates data by time windows so you can see database usage patterns and understand when query plan changes happened on the server.",
28-
"message": "Turn Query Store option on to improve query performance troubleshooting.",
29-
"helpLink": "https://docs.microsoft.com/sql/relational-databases/performance/monitoring-performance-by-using-the-query-store",
30-
"probes": [ "DatabaseConfiguration" ],
31-
"condition": "@is_query_store_on"
18+
"target": {
19+
"type": "Database",
20+
"version": "[12.0,)",
21+
"platform": "Windows",
22+
"name": { "not": "/^(master|msdb)$/" }
23+
},
24+
"id": "Custom_SqlServer.Database.QueryStoreOn",
25+
"tags": [ "InternalBestPracticeSet", "Performance" ],
26+
"displayName": "Query Store should be on",
27+
"description": "The SQL Server Query Store feature provides you with insight on query plan choice and performance. It simplifies performance troubleshooting by helping you quickly find performance differences caused by query plan changes. Query Store automatically captures a history of queries, plans, and runtime statistics, and retains these for your review. It separates data by time windows so you can see database usage patterns and understand when query plan changes happened on the server.",
28+
"message": "Turn Query Store option on to improve query performance troubleshooting.",
29+
"helpLink": "https://docs.microsoft.com/sql/relational-databases/performance/monitoring-performance-by-using-the-query-store",
30+
"probes": [ "DatabaseConfiguration" ],
31+
"condition": "@is_query_store_on"
3232
}
3333
],
3434
"probes":{
3535
"DatabaseConfiguration": [
36-
{
37-
"type": "SQL",
38-
"target": {
39-
"type": "Database",
40-
"version": "(,12.0)",
41-
"platform": "Windows"
42-
},
43-
"implementation": {
44-
"query": "SELECT db.[is_auto_create_stats_on] AS is_auto_create_stats_on, db.[is_auto_update_stats_on] AS is_auto_update_stats_on, 0 AS is_query_store_on FROM sys.databases AS db WHERE db.[name]='@DatabaseName'"
45-
}
46-
},
47-
{
48-
"type": "SQL",
49-
"target": {
50-
"type": "Database",
51-
"version": "[12.0,)",
52-
"platform": "Windows"
36+
{
37+
"type": "SQL",
38+
"target": {
39+
"type": "Database",
40+
"version": "(,12.0)",
41+
"platform": "Windows"
42+
},
43+
"implementation": {
44+
"query": "SELECT db.[is_auto_create_stats_on] AS is_auto_create_stats_on, db.[is_auto_update_stats_on] AS is_auto_update_stats_on, 0 AS is_query_store_on FROM sys.databases AS db WHERE db.[name]='@DatabaseName'"
45+
}
5346
},
54-
"implementation": {
55-
"query": "SELECT db.[is_auto_create_stats_on] AS is_auto_create_stats_on, db.[is_auto_update_stats_on] AS is_auto_update_stats_on, db.[is_query_store_on] AS is_query_store_on FROM sys.databases AS db WHERE db.[name]='@DatabaseName'"
47+
{
48+
"type": "SQL",
49+
"target": {
50+
"type": "Database",
51+
"version": "[12.0,)",
52+
"platform": "Windows"
53+
},
54+
"implementation": {
55+
"query": "SELECT db.[is_auto_create_stats_on] AS is_auto_create_stats_on, db.[is_auto_update_stats_on] AS is_auto_update_stats_on, db.[is_query_store_on] AS is_query_store_on FROM sys.databases AS db WHERE db.[name]='@DatabaseName'"
56+
}
5657
}
57-
}
5858
]
5959
}
60-
}
60+
}

0 commit comments

Comments
 (0)