
SQL Server statistics: why the optimizer sometimes guesses wrong
The morning report takes almost three times longer than usual, and nobody touched anything. On 10 million orders, here's where SQL Server gets its row estimates and how they end up five orders of magnitude off.
$ open article ->




