Articles

Page 7 of 10 — showing articles 109 to 126 of 179

Aggregates and Partitioning

Aggregating and Partitioning

Improving performance for SQL Server MIN and MAX queries on partitioned tables and working around query optimizer limitations.

Optimizer Limitations with Filtered Indexes

Filtered

SQL Server filtered unique indexes do not provide uniqueness information to the query optimizer. Redundant predicates may be needed to match filtered indexes.

The Problem with Window Functions and Views

A Gloomy Window

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.

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.