Remove sql-server-execution-plan-operators-part-4
article thumbnail

Fundamentals of table expressions, Part 7 – CTEs, optimization considerations

SQL Performance

This article is the 7th part of a series about named table expressions. In Part 5 and Part 6 I covered the conceptual aspects of common table expressions (CTEs). In Part 4 of the series, which focused on optimization of derived tables, I described a process of unnesting/substitution of table expressions.

C++ 140
article thumbnail

Fundamentals of Table Expressions, Part 12 – Inline Table-Valued Functions

SQL Performance

This article is the twelfth part in a series about named table expressions. I also compare them with stored procedures, mainly focusing on differences in terms of default optimization strategy, and plan caching and reuse behavior. For details, see Part 10 in the series. The plan for Query 1 is shown in Figure 1.

Cache 144
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Fundamentals of Table Expressions, Part 13 – Inline Table-Valued Functions, Continued

SQL Performance

Last month I explained when SQL Server inlines iTVFs, it applies parameter embedding optimization by default. Parameter embedding means SQL Server replaces parameter references in the query with the literal constant values from the current execution, and then the code with the constants gets optimized. MyOrders. (

Cache 121
article thumbnail

Additional T-SQL Improvements in SQL Server 2022

SQL Performance

Recently I covered some of the T-SQL improvements in SQL Server 2022 here , and Aaron Bertrand covered additional improvements here. Microsoft just announced the release of SQL Server 2022 CTP 2.1. This release includes a number of additional interesting T-SQL improvements, which include: The distinct predicate.

Servers 142
article thumbnail

How Parallel Plans Start Up – Part 1

SQL Performance

This five-part series takes a deep dive into the way SQL Server row mode parallel plans start up. This first part covers the role of the parent task (coordinator) in preparing the plan for parallel execution. I mention those details to help you reproduce the target plan if you wish.

Cache 98
article thumbnail

DevOps automation: From event-driven automation to answer-driven automation [with causal AI]

Dynatrace

This evolution in automation, referred to as answer-driven automation, empowers teams to address complex issues in real time, optimize workflows, and enhance overall operational efficiency. Business process automation Business process automation is the foundation for improving operational efficiency.

DevOps 222
article thumbnail

Number series generator challenge solutions – Part 5

SQL Performance

This is the fifth and last part in the series covering solutions to the number series generator challenge. In Part 1 , Part 2 , Part 3 and Part 4 I covered pure T-SQL solutions. Before I cover the CLR-based solutions, let’s quickly review the performance of two of the best performing T-SQL solutions.

C++ 111