StarJoinInfo in SQL Server Execution Plans

Details and demos for the StarJoinInfo
structures sometimes seen in SQL Server execution plans associated with an automatic performance optimization.
Details and demos for the StarJoinInfo
structures sometimes seen in SQL Server execution plans associated with an automatic performance optimization.
How selectivity is computed for multiple filters in the original and default SQL Server cardinality estimation models.
Multiple reasons to prefer using the NOEXPAND
hint on indexed views, even on Enterprise Edition.
How SQL Server row mode parallel execution plans work.
SQL Server nested loops join internals including ordered and unordered delayed prefetching and undocumented trace flags.
Internal details of SQL Server parameter sniffing, embedding (PEO), and parameterization.
A SQL Server incorrect results bug with merge join, partitioning, and a descending index.
A detailed analysis of a SQL Server optimizer bug that causes incorrect results when a descending non-unique index exists on a partitioned table.
Join and group by clauses may need to be written in a specific way to get the best results from the SQL Server query optimizer when using partitioning.
Improving performance for SQL Server MIN
and MAX
queries on partitioned tables and working around query optimizer limitations.
SQL Server cardinality estimation bugs with partial aggregates and union all concatenation. Merge and concat union details.
SQL Server query optimizer search phases and aggregate transformations using TOP
.
Improving the performance of SQL Server partitioned table joins using a manual query rewrite to implement a collocated (per-partition) join.
The SQL Server "Switch" execution plan operator, cardinality estimates on filtered indexes, and invisible operators.
SQL Server filtered unique indexes do not provide uniqueness information to the query optimizer. Redundant predicates may be needed to match filtered indexes.
The SQL Server query optimizer can fail to push a filter past a windowing function. This article shows how to improve the performance of queries that filter on views with window functions like ROW_NUMBER
and RANK
.
Internal details about execution plans and work tables. Nested loops prefetching and manufactured LOBs causing poor performance, and how to fix it.
Halloween Protection in SQL Server and how it affects INSERT
, UPDATE
, DELETE
, and MERGE
statements. Details of internal optimizations.