I am using compiled queries. As expected they take extra time to compile for the first time however what I have also noticed is that they recompile after not being called for approximately 30 minutes.
Is it possible to control when queries recompile or prevent them for recompiling altogether?
FYI: An example of the performance difference I notice is that one of my queries take 6 seconds when uncompiled compared to less than 10 seconds when compiled, so it's going to make a huge difference if I can control or prevent queries from recompiling.
Any help would be greatly appreciated.