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
{{ message }}
Repository navigation
Commit 7561e15
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/relational-databases/performance/monitoring-performance-by-using-the-query-store.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ ALTER DATABASE <database_name>
50
50
SET QUERY_STORE =ON (OPERATION_MODE = READ_WRITE);
51
51
```
52
52
53
-
In Azure Synapse Analytics, additional configuration options are not available. Enable the Query Store with a similar command, for example:
53
+
In Azure Synapse Analytics, enable the Query Store without additional options, for example:
54
54
55
55
```sql
56
56
ALTERDATABASE<database_name>
@@ -291,8 +291,7 @@ ALTER DATABASE <database_name>
291
291
SET QUERY_STORE (INTERVAL_LENGTH_MINUTES =15);
292
292
```
293
293
294
-
> [!NOTE]
295
-
> Arbitrary values are not allowed for `INTERVAL_LENGTH_MINUTES`. Use one of the following: 1, 5, 10, 15, 30, 60, or 1440 minutes.
294
+
Arbitrary values are not allowed for `INTERVAL_LENGTH_MINUTES`. Use one of the following: 1, 5, 10, 15, 30, 60, or 1440 minutes.
296
295
297
296
> [!NOTE]
298
297
> For Azure Synapse Analytics, customizing Query Store configuration options, as demonstrated in this section, is not supported.
@@ -562,11 +561,11 @@ WHERE rsi1.start_time > DATEADD(hour, -48, GETUTCDATE())
562
561
ORDER BYq.query_id, rsi1.start_time, rsi2.start_time;
563
562
```
564
563
565
-
If you want to see performance all regressions (not only those related to plan choice change) than just remove condition `AND p1.plan_id <> p2.plan_id` from the previous query.
564
+
If you want to see performance all regressions (not only those related to plan choice change), remove condition `AND p1.plan_id <> p2.plan_id` from the previous query.
566
565
567
566
#### Queries with historical regression in performance
568
567
569
-
Comparing recent execution to historical execution, the next query compares query execution based periods of execution. In this particular example, the query compares execution in recent period (1 hour) vs. history period (last day) and identifies those that introduced `additional_duration_workload`. This metric is calculated as a difference between recent average execution and history average execution multiplied by the number of recent executions. It actually represents how much of additional duration recent executions introduced compared to history:
568
+
Comparing recent execution to historical execution, the next query compares query execution based on period of execution. In this particular example, the query compares execution in recent period (1 hour) vs. history period (last day) and identifies those that introduced `additional_duration_workload`. This metric is calculated as a difference between recent average execution and history average execution multiplied by the number of recent executions. It actually represents how much of additional duration recent executions introduced compared to history:
570
569
571
570
```sql
572
571
--- "Recent" workload - last 1 hour
@@ -653,7 +652,7 @@ OPTION (MERGE JOIN);
653
652
654
653
For queries executed multiple times you may notice that [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] uses different plans, resulting in different resource utilization and duration. With Query Store, you can detect when query performance regressed and determine the optimal plan within a period of interest. You can then force that optimal plan for future query execution.
655
654
656
-
You can also identify inconsistent query performance for a query with parameters (either auto-parameterized or manually parameterized). Among different plans you can identify the plan that is fast and optimal enough for all or most of the parameter values and force that plan, keeping predictable performance for the wider set of user scenarios.
655
+
You can also identify inconsistent query performance for a query with parameters (either auto-parameterized or manually parameterized). Among different plans, you can identify the plan that is fast and optimal enough for all or most of the parameter values and force that plan, keeping predictable performance for the wider set of user scenarios.
657
656
658
657
### Force a plan for a query (apply forcing policy)
0 commit comments