Skip to content

Commit 1f00e44

Browse files
committed
Update 03_BuiltinQueryIntelligence.md
1 parent 171db13 commit 1f00e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql2022workshop/03_BuiltinQueryIntelligence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ You can learn more about Parameter Sensitive Plan Optimization at https://aka.ms
9696

9797
In SQL Server 2014 with dbcompat 120 Microsoft started using a new *model* within the query processor to make certain assumptions about cardinality estimation for certain query patterns. In some cases, the new model generated a more correct query plan but might result in slower performance than with the *legacy* CE model. The CE model scenarios include correlation, join containment, and row goal. Since SQL Server 2014 several options have been included to uses the legacy CE model or control CE behavior at the query level with trace flags or query hints.
9898

99-
In SQL Server 2022, if the Query Store is enabled, the optimizer will evaluate highly repetitive queries that match patterns for CE model scenarios where the model may be making an incorrect assumption. The optimizer will then attempt to test and verify whether a query hint could be used to allow the query to perform faster. Upon verification of faster performance, a query hint will be persisted in the Query Store to be used for future query executions. You can see any applied query hints for CE feedback in the **sys.query_store_query_hints** catalog view and CE feedback details in the **sys.query_store_plan_feedback** catalog view. CE feedback can be used even if the legacy CE model has been enabled but CE feedback will not be used if a query has existing query store hints.
99+
In SQL Server 2022, if the Query Store is enabled, the optimizer will evaluate highly repetitive queries that match patterns for CE model scenarios where the model may be making an incorrect assumption. The optimizer will then attempt to test and verify whether a query hint could be used to allow the query to perform faster. Upon verification of faster performance, a query hint will be persisted in the Query Store to be used for future query executions. You can see any applied query hints for CE feedback in the **sys.query_store_query_hints** catalog view and CE feedback details in the **sys.query_store_plan_feedback** catalog view. CE feedback will not be used if the legacy CE model has been enabled, if a query plan is forced in the query store, or a query has existing query store hints.
100100

101101
You can learn more about CE feedback at https://aka.ms/cefeedback.
102102

0 commit comments

Comments
 (0)