Ask the Expert

Analyzing stagnant databases

If the database has been sitting around, and no access to it has been granted for over five months, would it still need to be analyzed if I return on the sixth month and run query, and it takes forever, and I notice that it has not been analyzed during its stagnant time?

    Requires Free Membership to View

If the database has truly been idle (that's what I'm assuming you mean by stagnant) and no activity has occurred during that time, then the statistics should still be current. For example, if you had a "read only" database that was periodically loaded with data, you'd only need to run statistics after the load and not again until the next load. This is because nothing is changing. Statistics need to be generated as data changes (inserts/updates/deletes). If those things are not happening, statistics won't change.

For More Information

This was first published in April 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: