469,591 Members | 2,093 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,591 developers. It's quick & easy.

can Cached read only data hurt performance?


Hi,

I have basic questions regarding ASP.NET site
I am going to use Microsoft application configuration block and I wonder

1.does caching read only data in the application can hurt performance when
multiple request arrived?
(multiple pages read the cached data)

2.Instead of caching the data inside the Application dictionary can I use a
static method in the Global class
which return the read only data?
Thanks in advance

Nov 19 '05 #1
1 1183
1. Caching uses the memory (stores the objects there), so if you use caching
to store too many objects, you may have problems with that. But if multiple
pages read the same data, then your application will work much faster and
caching is a very good decision.

2. Why do you consider using Global.asax ? Principally using cache goes like
this - you call a method (GetMyValueFromCache), this method checks if MyValue
is in cache and if so - returns it. If no - it gets it (maybe from database),
adds it to the cache and returns it.

Hope that makes sense and helps!
Regards,
Kostadin Kostov

"Julia" wrote:

Hi,

I have basic questions regarding ASP.NET site
I am going to use Microsoft application configuration block and I wonder

1.does caching read only data in the application can hurt performance when
multiple request arrived?
(multiple pages read the cached data)

2.Instead of caching the data inside the Application dictionary can I use a
static method in the Global class
which return the read only data?
Thanks in advance

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Nick Mudge | last post: by
21 posts views Thread by Jay Levitt | last post: by
3 posts views Thread by UDBDBA | last post: by
10 posts views Thread by Farshid Lashkari | last post: by
3 posts views Thread by Rahul Babbar | last post: by
32 posts views Thread by C. (http://symcbean.blogspot.com/) | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.