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: docs/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,24 +94,21 @@ The following XEs are available for degree of parallelism (DOP) feedback:
94
94
-`dop_feedback_stabilized`: Occurs when DOP feedback is stabilized for a query.
95
95
-`dop_feedback_reverted`: Occurs when a DOP feedback is reverted. The event fires when feedback validation fails on the first feedback provided. The system will revert back to no feedback state.
96
96
-`dop_feedback_analysis_stopped` : Occurs when the DOP feedback analysis is stopped for a query.
97
+
-`dop_feedback_reassessment_failed` : Occurs when the DOP feedback reassesses a previously persisted feedback choice, but found the persisted value to no longer be valid. This state restarts the feedback loop.
97
98
98
-
## Persistence for degree of parallelism (DOP) feedback
<!---[!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] (Starting with [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)]) -->
99
+
### Persistence for degree of parallelism (DOP) feedback
102
100
103
101
If the DOP feedback mechanism finds that the new degree of parallelism is good, this optimization is persisted inside the Query Store and will be applied appropriately to a query for future executions.
104
102
105
103
This feature was introduced in [!INCLUDE [ssSQL22](../../includes/sssql22-md.md)], and is available for queries that operate in the database compatibility level 160or higher, or the `QUERY_OPTIMIZER_COMPATIBILITY_LEVEL_n` hint of 160and higher, and when Query Store is enabled for the database and is in a "read write" state.
106
104
107
105
## Related content
108
106
107
+
- Blog: [Smarter Parallelism: Degree of parallelism feedback in SQL Server 2025](https://techcommunity.microsoft.com/blog/sqlserver/smarter-parallelism-degree-of-parallelism-feedback-in-sql-server-2025/4431318)
109
108
- Blog: [Intelligent Query Processing: degree of parallelism feedback](https://cloudblogs.microsoft.com/sqlserver/2022/10/20/intelligent-query-processing-degree-of-parallelism-feedback/)
110
109
- [Intelligent query processing in SQL databases](intelligent-query-processing.md)
111
-
- [Intelligent query processing features in detail](intelligent-query-processing-details.md)
112
110
- [Configure the max degree of parallelism (server configuration option)](../../database-engine/configure-windows/configure-the-max-degree-of-parallelism-server-configuration-option.md)
Copy file name to clipboardExpand all lines: docs/relational-databases/performance/intelligent-query-processing.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ For demos and sample code of intelligent query processing (IQP) features on GitH
33
33
You can make workloads automatically eligible for intelligent query processing by enabling the applicable database compatibility level for the database. You can set this using [!INCLUDE [tsql](../../includes/tsql-md.md)]. For example:
34
34
35
35
```sql
36
-
ALTERDATABASE [WideWorldImportersDW] SET COMPATIBILITY_LEVEL =160;
36
+
ALTERDATABASE [WideWorldImportersDW] SET COMPATIBILITY_LEVEL =170;
37
37
```
38
38
39
39
The following table details all intelligent query processing features, along with any requirement they have for database compatibility level. For complete details on all IQP features, including release notes and more in-depth descriptions, see [Intelligent query processing features in detail](intelligent-query-processing-details.md).
@@ -67,7 +67,6 @@ The following table details all intelligent query processing features, along wit
67
67
|[Memory grant feedback (Percentile)](intelligent-query-processing-memory-grant-feedback.md#percentile-and-persistence-mode-memory-grant-feedback)| Yes, enabled on all databases | Yes, starting with [!INCLUDE [sql-server-2022](../../includes/sssql22-md.md)]) with database compatibility level 140 | Addresses existing limitations of memory grant feedback in a non-intrusive way by incorporating past query execution to refine feedback. |
68
68
|[Memory Grant feedback persistence](intelligent-query-processing-memory-grant-feedback.md#percentile-and-persistence-mode-memory-grant-feedback)| Yes, enabled on all databases | Yes, starting with [!INCLUDE [sql-server-2022](../../includes/sssql22-md.md)]) with database compatibility level 140 | Provides new functionality to persist memory grant feedback. Requires Query Store to be enabled for the database and in `READ_WRITE` mode. |
69
69
|[CE feedback persistence](intelligent-query-processing-cardinality-estimation-feedback.md#persistence-for-cardinality-estimation-ce-feedback)| Yes, starting with database compatibility level 160 | Yes, starting with [!INCLUDE [sql-server-2022](../../includes/sssql22-md.md)]) with database compatibility level 160 | Requires Query Store to be enabled for the database and in `READ_WRITE` mode. |
70
-
|[DOP feedback persistence](intelligent-query-processing-degree-parallelism-feedback.md#persistence-for-degree-of-parallelism-dop-feedback)| Yes, starting with database compatibility level 160 | Yes, starting with database compatibility level 160 | Requires Query Store to be enabled for the database and in `READ_WRITE` mode. |
71
70
|[Optimized plan forcing with Query Store](optimized-plan-forcing-query-store.md)| Yes | Yes, starting with [!INCLUDE [sql-server-2022](../../includes/sssql22-md.md)]). | Reduces compilation overhead for repeating forced queries. For more information, see [Optimized plan forcing with Query Store](optimized-plan-forcing-query-store.md). |
72
71
|[Scalar UDF Inlining](intelligent-query-processing-details.md#scalar-udf-inlining)| Yes, starting with database compatibility level 150 | Yes, starting in [!INCLUDE [sql-server-2019](../../includes/sssql19-md.md)] with database compatibility level 150 | Scalar UDFs are transformed into equivalent relational expressions that are "inlined" into the calling query, often resulting in significant performance gains. |
73
72
|[Parameter Sensitive Plan optimization](parameter-sensitive-plan-optimization.md)| Yes, starting with database compatibility level 160 | Yes, starting in [!INCLUDE [sql-server-2022](../../includes/sssql22-md.md)] with database compatibility level 160 | Parameter Sensitive Plan optimization addresses the scenario where a single cached plan for a parameterized query isn't optimal for all possible incoming parameter values, for example non-uniform data distributions. |
@@ -84,7 +83,7 @@ The following table details all intelligent query processing features, along wit
84
83
|[Approximate Percentile](intelligent-query-processing-details.md#approximate-query-processing)| Yes, starting with database compatibility level 110 | Quickly compute percentiles for a large dataset with acceptable rank-based error bounds to help make rapid decisions by using approximate percentile aggregate functions. |
85
84
|[Batch Mode on Rowstore](intelligent-query-processing-details.md#batch-mode-on-rowstore)| Yes, starting with database compatibility level 150 | Provide batch mode for CPU-bound relational DW workloads without requiring columnstore indexes. |
86
85
|[Cardinality estimation (CE) feedback](intelligent-query-processing-cardinality-estimation-feedback.md)| Yes, starting with database compatibility level 160 | Automatically adjusts cardinality estimates for repeating queries to optimize workloads where inefficient CE assumptions cause poor query performance. CE feedback will identify and use a model assumption that better fits a given query and data distribution to improve query execution plan quality. |
87
-
|[Degree of parallelism (DOP) feedback](intelligent-query-processing-degree-parallelism-feedback.md)| Yes, in the Always-up-to-date update policy, starting with database compatibility level 160| Automatically adjusts degree of parallelism for repeating queries to optimize for workloads where inefficient parallelism can cause performance issues. Requires Query Store to be enabled. |
86
+
|[Degree of parallelism (DOP) feedback](intelligent-query-processing-degree-parallelism-feedback.md)| Yes, starting with database compatibility level 160 in the [Always-up-to-date update policy](/azure/azure-sql/managed-instance/update-policy#always-up-to-date-update-policy). No, for the [SQL Server 2022 update policy](/azure/azure-sql/managed-instance/update-policy#sql-server-2022-update-policy).| Automatically adjusts degree of parallelism for repeating queries to optimize for workloads where inefficient parallelism can cause performance issues. Requires Query Store to be enabled. |
88
87
|[Interleaved Execution](intelligent-query-processing-details.md#interleaved-execution-for-mstvfs)| Yes, starting with database compatibility level 140 | Uses the actual cardinality of the multi-statement table valued function encountered on first compilation instead of a fixed guess. |
89
88
|[Memory grant feedback (Batch Mode)](intelligent-query-processing-memory-grant-feedback.md#batch-mode-memory-grant-feedback)| Yes, starting with database compatibility level 140 | If a batch mode query has operations that spill to disk, add more memory for consecutive executions. If a query wastes > 50% of the memory allocated to it, reduce the memory grant size for consecutive executions. |
90
89
|[Memory grant feedback (Row Mode)](intelligent-query-processing-memory-grant-feedback.md#row-mode-memory-grant-feedback)| Yes, starting with database compatibility level 150 | If a row mode query has operations that spill to disk, add more memory for consecutive executions. If a query wastes > 50% of the memory allocated to it, reduce the memory grant size for consecutive executions. |
0 commit comments