You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/mysql/concepts-performance-recommendations.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.date: 05/23/2019
14
14
> [!NOTE]
15
15
> Performance Recommendations is in public preview.
16
16
17
-
The Performance Recommendations feature analyzes your databases to create customized suggestions for improved performance. To produce the recommendations, the analysis looks at various database characteristics including schema. Enable [Query Store](concepts-query-store.md) on your server to fully utilize the Performance Recommendations feature. Turning on Query Store enables performance_schema and a subset of performance schema instruments required for the feature. After implementing any performance recommendation, you should test performance to evaluate the impact of those changes.
17
+
The Performance Recommendations feature analyzes your databases to create customized suggestions for improved performance. To produce the recommendations, the analysis looks at various database characteristics including schema. Enable [Query Store](concepts-query-store.md) on your server to fully utilize the Performance Recommendations feature. If performance schema is OFF, turning on Query Store enables performance_schema and a subset of performance schema instruments required for the feature. After implementing any performance recommendation, you should test performance to evaluate the impact of those changes.
18
18
19
19
## Permissions
20
20
@@ -30,7 +30,7 @@ Open **Performance Recommendations** from the **Intelligent Performance** sectio
30
30
31
31
Select **Analyze** and choose a database, which will begin the analysis. Depending on your workload, the analysis may take several minutes to complete. Once the analysis is done, there will be a notification in the portal. Analysis performs a deep examination of your database. We recommend you perform analysis during off-peak periods.
32
32
33
-
The **Recommendations** window will show a list of recommendations if any were found.
33
+
The **Recommendations** window will show a list of recommendations if any were found and the related query ID that generated this recommendation. With the query ID, you can use the [mysql.query_store](concepts-query-store.md#mysqlquery_store) view to learn more about the query.
34
34
35
35

Copy file name to clipboardExpand all lines: articles/mysql/concepts-query-store.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ The Query Store feature in Azure Database for MySQL provides a way to track quer
18
18
19
19
## Common scenarios for using Query Store
20
20
21
-
Query store can be used in a number scenarios, including the following:
21
+
Query store can be used in a number of scenarios, including the following:
22
22
23
23
- Detecting regressed queries
24
24
- Determining the number of times a query was executed in a given time window
@@ -50,18 +50,18 @@ Allow up to 20 minutes for the first batch of data to persist in the mysql datab
50
50
51
51
Query Store has two stores:
52
52
53
-
- A runtime stats store for persisting the query execution statistics information.
54
-
- A wait stats store for persisting wait statistics information.
53
+
- A runtime statistics store for persisting the query execution statistics information.
54
+
- A wait statistics store for persisting wait statistics information.
55
55
56
-
To minimize space usage, the runtime execution statistics in the runtime stats store are aggregated over a fixed, configurable time window. The information in these stores is visible by querying the query store views.
56
+
To minimize space usage, the runtime execution statistics in the runtime statistics store are aggregated over a fixed, configurable time window. The information in these stores is visible by querying the query store views.
57
57
58
58
The following query returns information about queries in Query Store:
59
59
60
60
```sql
61
61
SELECT*FROMmysql.query_store;
62
62
```
63
63
64
-
Or this query for wait stats:
64
+
Or this query for wait wait statistics:
65
65
66
66
```sql
67
67
SELECT*FROMmysql.query_store_wait_stats;
@@ -90,14 +90,14 @@ The following options are available for configuring Query Store parameters.
90
90
| query_store_capture_mode | Turn the query store feature ON/OFF based on the value. Note: If performance_schema is OFF, turning on query_store_capture_mode will turn on performance_schema and a subset of performance schema instruments required for this feature. | ALL | NONE, ALL |
91
91
| query_store_capture_interval | The query store capture interval in minutes. Allows specifying the interval in which the query metrics are aggregated | 15 | 5 - 60 |
92
92
| query_store_capture_utility_queries | Turning ON or OFF to capture all the utility queries that is executing in the system. | NO | YES, NO |
93
-
| query_store_retention_period_in_days | Time window in days to retain the data in the query store| 7 | 1 - 30 |
93
+
| query_store_retention_period_in_days | Time window in days to retain the data in the query store. | 7 | 1 - 30 |
94
94
95
95
The following options apply specifically to wait statistics.
| query_store_wait_sampling_capture_mode | Allows turning ON / OFF the wait statistics. | NONE | NONE, ALL |
100
-
| query_store_wait_sampling_frequency | Alters frequency of wait-sampling in seconds. 5 to 300 seconds. Default is currently 30. | 30 | 5-300 |
100
+
| query_store_wait_sampling_frequency | Alters frequency of wait-sampling in seconds. 5 to 300 seconds. | 30 | 5-300 |
101
101
102
102
> [!NOTE]
103
103
> Currently **query_store_capture_mode** supersedes this configuration, meaning both **query_store_capture_mode** and **query_store_wait_sampling_capture_mode** have to be enabled to ALL for wait statistics to work. If **query_store_capture_mode** is turned off, then wait statistics is turned off as well since wait statistics utilizes the performance_schema enabled, and the query_text captured by query store.
0 commit comments