Skip to content

Commit 7561e15

Browse files
20211028 1357
1 parent 35d3d5d commit 7561e15

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎docs/relational-databases/performance/monitoring-performance-by-using-the-query-store.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ALTER DATABASE <database_name>
5050
SET QUERY_STORE = ON (OPERATION_MODE = READ_WRITE);
5151
```
5252

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:
5454

5555
```sql
5656
ALTER DATABASE <database_name>
@@ -291,8 +291,7 @@ ALTER DATABASE <database_name>
291291
SET QUERY_STORE (INTERVAL_LENGTH_MINUTES = 15);
292292
```
293293

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.
296295

297296
> [!NOTE]
298297
> 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())
562561
ORDER BY q.query_id, rsi1.start_time, rsi2.start_time;
563562
```
564563

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.
566565

567566
#### Queries with historical regression in performance
568567

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:
570569

571570
```sql
572571
--- "Recent" workload - last 1 hour
@@ -653,7 +652,7 @@ OPTION (MERGE JOIN);
653652

654653
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.
655654

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.
657656

658657
### Force a plan for a query (apply forcing policy)
659658

0 commit comments

Comments
 (0)