Dear community,
All of a sudden, it seems, my project took 10-20 minutes to open the first document. Subsequent documents open at normal speed.
I was at a loss where to look for the cause of this sudden delay.
Some more details:
- This started happening from when I created a new branch with an application ID that is not lowest, so that I have to switch available applications
- The initial documents I tested have very limited screen types, these could not be the cause.
It turned out that the delay was caused by out of date statistics on the database server.
After running
exec tsf_optimize
the wait for the initial document dropped from 800 seconds to 1 second. That's what I call improvement!
Is it an option to have the deployment center add these optimize scripts to the job scheduler / SQL Agent / Indicium process flow ?