Skip to content

Commit 0d647d1

Browse files
authored
Merge pull request #5135 from marktab/patch-2
Replacing with "opaque box"
2 parents 74f9871 + 1f9afc7 commit 0d647d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/relational-databases/user-defined-functions/scalar-udf-inlining.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ As mentioned earlier, the query plan no longer has a user-defined function opera
125125
- [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] has also inferred the implicit `GROUP BY O_CUSTKEY on ORDERS` and has used the IndexSpool + StreamAggregate to implement it.
126126
- [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is now using parallelism across all operators.
127127

128-
Depending upon the complexity of the logic in the UDF, the resulting query plan might also get bigger and more complex. As we can see, the operations inside the UDF are now no longer a black box, and hence the query optimizer is able to cost and optimize those operations. Also, since the UDF is no longer in the plan, iterative UDF invocation is replaced by a plan that completely avoids function call overhead.
128+
Depending upon the complexity of the logic in the UDF, the resulting query plan might also get bigger and more complex. As we can see, the operations inside the UDF are now no longer an opaque box, and hence the query optimizer is able to cost and optimize those operations. Also, since the UDF is no longer in the plan, iterative UDF invocation is replaced by a plan that completely avoids function call overhead.
129129

130130
## Inlineable scalar UDFs requirements
131131
<a name="requirements"></a> A scalar T-SQL UDF can be inlined if all of the following conditions are true:

0 commit comments

Comments
 (0)