Articles

Page 8 of 11 — showing articles 127 to 144 of 188

The Halloween Problem—Part 4

Halloween 4

SQL Server Halloween Protection and the query optimizer. Redundant sorts and other non-eager table spool options.

The Halloween Problem—Part 3

Halloween 3

SQL Server Halloween Protection special optimizations for the MERGE statement. Hole-filling and rowset sharing.

The Halloween Problem—Part 2

Halloween 2

When SQL Server Halloween Protection is needed for INSERT and DELETE statements. Constraint checking and phase separation.

The Halloween Problem—Part 1

Halloween 1

Halloween Protection for SQL Server UPDATE queries. Why protection is needed and how it is implemented.

A creative use of IGNORE_DUP_KEY

Ignore the Duplicate

Adding the IGNORE_DUP_KEY option to an existing primary key without downtime. How the execution plans generated for IGNORE_DUP_KEY work.

Optimizing T-SQL queries that change data

Change

Optimizing the performance of SQL Server INSERT, UPDATE, DELETE, and MERGE statements. Execution plan analysis and undocumented trace flags. Narrow (per-row) and wide (per-index) plans.

MERGE Bug with Filtered Indexes

Another MERGE Bug

A SQL Server bug with unique filtered indexes. Covers narrow update plans and the Split, Sort, Collapse operator combination.

Query Optimizer Deep Dive—Part 4

Deep Dive 4

Internal operation of the SQL Server query optimizer. Writing queries that will take advantage of the optimizer's relational reasoning.