Properly Persisted Computed Columns

Improving execution plans and performance for queries involving computed columns using a new trace flag in SQL Server 2016.
Improving execution plans and performance for queries involving computed columns using a new trace flag in SQL Server 2016.
It makes sense for the optimizer to consider reordering the inputs to a concatenation when less than the full potential result set is needed. Surprisingly, SQL Server does not do this in general.
Deep dive into SQL Server temporary table and variable caching, including common misconceptions and practices that disable this optimization.
The statistical science and algorithms behind the way SQL Server calculates a cardinality estimate for a filter on a COUNT
aggregate.
SQL Server sometimes produces misleading information about sort operations in execution plans.
How WITH ENCRYPTION
is implemented and how to reverse it using T-SQL.
Why an update may fail when a partition has some data on a read-only filegroup due to "rowset sharing". Includes several workarounds for the issue.
The SQL Server query optimizer does not use uniqueness information obtained through automatic indexed view matching.
Follows the process of optimizing a simple update query and explores some deep internals including "lazy latches" along the way.
Optimized and static bitmap filters, null rejection, and worst-case hash join performance.
Surprising implementation details for INSTEAD OF triggers and a cardinality estimation bug in SQL Server 2014 onwards.
Avoiding large memory grants and excessive scalar computations.
Analyzing the cause of lower than expected performance and applying a correction.
The type and number of locks acquired and released during query execution can have a surprisingly large impact on performance, even if no waiting or blocking occurs.
A fast way to compute single and grouped medians using a dynamic T-SQL cursor.
SQL Server sort internals, including in-memory sorts and two new classes specific to In-Memory OLTP.
The first four of the seven SQL Server sorts described in detail.
The guarantees provided by the weakest of the standard transaction isolation levels. Includes examples of less well-known concurrency effects.