Skip to content

Commit b0436fe

Browse files
Update query-processing-architecture-guide.md
This section is missing details and makes misleading statements when describing how cost-based optimization works. There's also room to improve the quality by addressing a common point of confusion, where parallel plans have lower overall costs than the cost threshold for parallelism setting. Update docs/relational-databases/query-processing-architecture-guide.md I like it! Co-authored-by: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com> Update docs/relational-databases/query-processing-architecture-guide.md Co-authored-by: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com>
1 parent 15c237e commit b0436fe

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/relational-databases/query-processing-architecture-guide.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,10 +1127,13 @@ Degree of parallelism (DOP) determines the maximum number of CPUs that are being
11271127

11281128
The [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] Query Optimizer doesn't use a parallel execution plan for a query if any one of the following conditions is true:
11291129

1130-
- The serial execution cost of the query isn't high enough to consider an alternative, parallel execution plan.
1131-
- A serial execution plan is considered faster than any possible parallel execution plan for the particular query.
1130+
- The serial execution plan is trivial, or does not exceed the cost threshold for parallelism setting.
1131+
- The serial execution plan has a lower total estimated subtree cost than any parallel execution plan explored by the optimizer.
11321132
- The query contains scalar or relational operators that can't be run in parallel. Certain operators can cause a section of the query plan to run in serial mode, or the whole plan to run in serial mode.
11331133

1134+
> [!NOTE]
1135+
> The total estimated subtree cost of a parallel plan may be lower than the cost threshold for parallelism setting. This indicates that the total estimated subtree cost of the serial plan exceeded it, and the query plan with the lower total estimated subtree cost was chosen.
1136+
11341137
### Degree of parallelism (DOP)
11351138
<a id="DOP"></a>
11361139

0 commit comments

Comments
 (0)