Query execution time

pl456

Registered User.
Local time
Today, 00:30
Joined
Jan 31, 2008
Messages
150
I have a query based on several other queries that fetches data from a SQL server. When I first run the query it can take a minute to fetch the data however once it has ran once and I change the criteria it fetches the new data in seconds.

Does anybody know why this is? Please
 
Probably most of that is time to open the connection to the database, authorizing and what not...
Try opening the database and just opening a table or a quick small query first, that should take pretty long too...
 
I have small queries running on the database, they run fine. Just the initial running of this one????
 
It could be that something is being cached somewhere (either by the database engine or by something lower level in the OS or even the disk controller - and hopefully, properly so that it doesn't result in out of date information being returned)

Or it could be that one of the database components somewhere in there is having to create an optimisation scheme - maybe one that is discarded after a certain amount of idle time, but can be re-used if called upon within that time.
 
Any idea how I might locate/update/amend/improve the mythical file?
 

Users who are viewing this thread

Back
Top Bottom