It kind of depends on the query. Are you sorting, joining or grouping on non-indexed columns? It could be that an execution plan has to be created the first time the query runs after starting up.
Here's where i would start:
Run a tuning trace on your query after rebooting and see if it recommends any indexes.
Or
Try putting the query in a stored procedure. That will hold the execution plan.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.