changing recordsource then go back to original - query is faster

qwertyjjj

Registered User.
Local time
Today, 07:14
Joined
Aug 8, 2006
Messages
262
Hi
I have some drop downs on my form, which has some code that decides which recordsource to use.
When I first select an option from the drop down, the query takes 10 seconds to load data.
I then select another option, which runs a different query, which takes x seconds.
If I then select the original option from the dropdown, the data loads onto the form in less than a second.

Why is there a delay the first time round and not the next? Has Access saved some kind of query plan? If so, why doesn't it save it permanently?
 
I think it may just be kept in memory cache and if you were to do too many other things, that pushed it out of memory cache, it would go back to the original time to load.
 

Users who are viewing this thread

Back
Top Bottom