June 16, 2011 at 2:36 pm
Hi everyone,
What is the difference between Update stats with full scan and Update stats with 50% sampling?
Thank you.
June 16, 2011 at 2:48 pm
The fullscan reads the entire table. The sampling 50% reads around 50% of the table (a sample)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 16, 2011 at 3:57 pm
So, whenver I've to do Update stats, can I just do 50% sampling instead of fullscan?
June 16, 2011 at 4:20 pm
Um...
Sure, if you don't mind that SQL is only reading half the table (a random half) to compute the statistics. Half the table != the entire table.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply