Skip to content

PERSIST_SAMPLE_PERCENT #916

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
allenjkrehbiel opened this issue Apr 24, 2025 · 0 comments
Open

PERSIST_SAMPLE_PERCENT #916

allenjkrehbiel opened this issue Apr 24, 2025 · 0 comments

Comments

@allenjkrehbiel
Copy link

Description of the feature
It can be a new feature, or a change to an existing feature

Include support for PERSIST_SAMPLE_PERCENT to the UPDATE STATISTICS command.

We are utilizing this process to force a higher percentage sample size for statistics in certain tables of our DB. (Some tables 30%, some tables FULLSCAN).

We also have auto update stats enabled in this environment.

When stats are auto updated, the sample size reverts back to a SQL default.
UPDATE STATISTICS offers the parameter PERSIST_SAMPLE_PERCENT to force the same sample size for any subsequent stats updates that do not specify a sample size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants