IndexOptimize - @StatisticsModificationLevel and @MAXDOP parameters #454
-
Hi Ola, can you provide additional information about @StatisticsModificationLevel parameter? In a datawarehouse environment what is the best practice about statistics? Pasquale |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Let's first look at the documentation. "Specify a percentage of modified rows for when the statistics should be updated. Statistics will also be updated when the number of modified rows has reached a decreasing, dynamic threshold, SQRT(number of rows * 1000)." The lower you set this parameter, the more frequent the statistics will be updated (and the longer the job will take). So this is a balance. As a reference, you can read about the threshold for auto-update-statistics. You will have to pick a value and then see how it works in your environment.
Yes, it does. |
Beta Was this translation helpful? Give feedback.
-
This parameter works the same, no matter which compatibility level that you are on. In addition you don't need any trace flags. I have just used the same formula as Microsoft. |
Beta Was this translation helpful? Give feedback.
Let's first look at the documentation.
https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html#StatisticsModificationLevel
"Specify a percentage of modified rows for when the statistics should be updated. Statistics will also be updated when the number of modified rows has reached a decreasing, dynamic threshold, SQRT(number of rows * 1000)."
The lower you set this parameter, the more frequent the statistics will be updated (and the longer the job will take). So this is a balance.
As a reference, you can read about the threshold for auto-update-statistics.
https://techcommunity.micro…