Gouache painting of a wooden boat on a cradle with a tall mast and a large dark vermilion sail

Performance Regression After a SQL Server Upgrade: First Aid

A performance regression after an upgrade hurts most when users are waiting. This post shows a first-aid switch that brings back the old row estimates without lowering the compatibility level, and proves with a demo what changes and what stays. It also covers the undo, the per-query options and the steps that find the real cause.

Read More
Gouache painting of two plain glass jars of beans filled to slightly different levels with a vermilion scoop between them

FORCE_DEFAULT_CARDINALITY_ESTIMATION: A Simple Explanation

FORCE_DEFAULT_CARDINALITY_ESTIMATION is a query hint that gives one query the default cardinality estimator, even when the database is set to the legacy one. This post builds a demo table, compares the row estimates of both models with the real count and shows how to prove which model a plan used. It also names the opposite hint and the permission difference.

Read More