-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Are you a customer of Octopus Deploy? Don't raise the issue here. Please contact our support team so we can triage your feature request, making sure it's handled appropriately.
Prerequisites
- I have searched open and closed issues to make sure it isn't already requested
- My team has started working on this issue
- I have written a descriptive issue title
The enhancement
The Need
When upgrading to a new version which includes a database migration, the server will force an index rebuild during startup which includes recomputing statistics. For instances that aren't upgraded periodically, the statistics on tables can become out of date and cause poor query performance.
This is particularly true on high-write tables such as ServerTask, Deployment, RunbookRun, Event and VariableSet.
Solution
The state of database statistics are checked during the system integrity check, with a suggested script to recompute the statistics. Currently, this is left to the user to execute, to avoid impact on the sql server, and can be run at an appropriate time.
Screenshots and Mockups