Gouache painting of a jar of lentils beside a saucer of sample lentils with a vermilion scoop on a kitchen counter

Statistics Sample Percent and PERSIST_SAMPLE_PERCENT

The statistics sample percent decides how many rows SQL Server reads when it updates a statistic. A tested demo on 1,000,000 rows shows the default sample of 35.5 percent, a FULLSCAN of 100 percent, and the way PERSIST_SAMPLE_PERCENT keeps 100 percent for later updates, including an automatic one. It also shows that a sampled update can be slower than a full scan.

Read More