J
Jon
I have a couple of tables I want to load into a dataset and keep around
pretty much forever, although they will need to be refreshed every so often.
I can either put the dataset into an Application("myDataset") var or I can
put it into the cache, Cache("myDataset"), both are universally available to
my app, except in Global.asax, only Application() vars are available (or it
seems that way on my machine, at least).
I thought it would be better practice to use the cache, but I cannot do so
if I want to load the data in Application_Start. If I want to do that, I
need to use Application() vars.
Does it really matter whether I use app or cache vars? I know there's no
hard rules on when to use one and when to use the other...at least not that
I've seen. Everyone has their own ideas on that.
My questions:
1. When do you recommend cache over app vars?
2. Is there any performance difference between the two?
3. If using cache vars when is the best time to populate them?
Thank you!
pretty much forever, although they will need to be refreshed every so often.
I can either put the dataset into an Application("myDataset") var or I can
put it into the cache, Cache("myDataset"), both are universally available to
my app, except in Global.asax, only Application() vars are available (or it
seems that way on my machine, at least).
I thought it would be better practice to use the cache, but I cannot do so
if I want to load the data in Application_Start. If I want to do that, I
need to use Application() vars.
Does it really matter whether I use app or cache vars? I know there's no
hard rules on when to use one and when to use the other...at least not that
I've seen. Everyone has their own ideas on that.
My questions:
1. When do you recommend cache over app vars?
2. Is there any performance difference between the two?
3. If using cache vars when is the best time to populate them?
Thank you!