Statistics

Category: statistics

When Were Statistics Last Updated for a Heap?

When Were Statistics Last Updated for a Heap?

on February 16, 2018

I got a question last week from a very smart fellow:

How can I tell when statistics were last updated for a heap?

Before I could email him back, I soon got another email in which he answered his own question.

Continue reading

Index Rebuild, Reorganize, and Statistics in Maintenance Plans in SQL Server 2016

Index Rebuild, Reorganize, and Statistics in Maintenance Plans in SQL Server 2016

on July 5, 2017

Working with maintenance plans is supposed to be easy, but I find it to be quite difficult.

Continue reading

How Much Longer Does it Take To Update Statistics with FULLSCAN?

How Much Longer Does it Take To Update Statistics with FULLSCAN?

on June 14, 2017

Category: statistics

When I was recently working on the course, “Should Developers Manage Index Maintenance?” I explainedΒ that in my experience, statistics maintenance can make more of a difference to performance than index maintenance can.

Continue reading

When a Nonclustered Index and Statistics Make a Query Slower

When a Nonclustered Index and Statistics Make a Query Slower

on May 24, 2017

Nonclustered indexes are awesome in SQL Server: they can get you huge performance gains.

But we can’t always create the perfect index for every query. And sometimes when SQL Server finds an index that isn’t quite perfect and decides to use it, it might make your query slower instead of faster.

Continue reading