Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What are the scenarios to update SQL Server statistics?

Asked by Andrew Jenkins Apr 22, 2021 1.2K views 1 answer
Share

About this question

 I know SQL Server updates stats when 20% of data is changed in a table. It keeps track of it by using the modification counter which we can see in the [modification_counter] column of sys. stats table. But I can see for one of my key tables in the database that stats are getting updated much before they reach the 20% data modification threshold. Just wanted to know is there anything else that will force SQL Server to update stats automatically. Why I am worried is that when SQL Server update stats automatically, it is using 5% sampling rate which might cause the creation of a bad/inaccurate execution plan. (need confirmation on that is totally different issue). So I want to know why SQL Server is so often updating stats?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.