From e9eb812dabbc5c3014f8010450b16ddb8ef43561 Mon Sep 17 00:00:00 2001 From: Peter-Msft <54499324+Peter-Msft@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:07:09 +0200 Subject: [PATCH] Update intelligent-query-processing-degree-parallelism-feedback.md Added the SQL statement to enable 'DOP_FEEDBACK' to complement the SQL statement to disable 'DOP_FEEDBACK' which is already contained in the article. --- ...elligent-query-processing-degree-parallelism-feedback.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback.md b/docs/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback.md index f555bab0652..a9d26506ae0 100644 --- a/docs/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback.md +++ b/docs/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback.md @@ -36,7 +36,11 @@ Instead of incurring in the pains of an all-encompassing default or manual adjus Parallelism is often beneficial for reporting and analytical queries, or queries that otherwise handle large amounts of data. Conversely, OLTP-centric queries that are executed in parallel could experience performance issues when the time spent coordinating all threads outweighs the advantages of using a parallel plan. For more information, see [parallel plan execution](../../relational-databases/query-processing-architecture-guide.md#parallel-query-processing). -- To enable DOP feedback, enable the `DOP_FEEDBACK` [database scoped configuration](../../t-sql/statements/alter-database-scoped-configuration-transact-sql.md#dop_feedback---on--off-) in a database. +- To enable DOP feedback, enable the `DOP_FEEDBACK` [database scoped configuration](../../t-sql/statements/alter-database-scoped-configuration-transact-sql.md#dop_feedback---on--off-) in a database. For example, in the user database: + + ```sql + ALTER DATABASE SCOPED CONFIGURATION SET DOP_FEEDBACK = ON; + ``` - To disable DOP feedback at the database level, use the `DOP_FEEDBACK` [database scoped configuration](../../t-sql/statements/alter-database-scoped-configuration-transact-sql.md#ce_feedback---on--off-). For example, in the user database: