Re: Website Running Slow Please Help.
- From: Samuel R. Neff <samuelneff@xxxxxxxxxx>
- Date: Thu, 31 Jan 2008 14:22:23 -0500
Caching is a very common way to improve performance, but it sounds
like you still have some underlying performance problems that really
should be fixed. Caching is great when the content you're generating
requires a ton of processing or is extremely database intensive, or in
extremely high volume sites where there are a number of concurrent
requests for the same data (think of situations where caching times in
seconds would be appropriate). Does that situation apply to your
application?
Also, generally it's better to expire items from the cache manually
when the underlying data changes. That's not always possible if the
cache is based on external data, but if the cache is data that your
application itself has control over, then the admin portions of the
application that write data to the database should know what items are
cached and can cause immediate expiration.
Another thing to look into is SQL Server 2005 Query Notifications.
These are a type of cache, but they automatically expire when the
underlying data changes without as much work from the developer. It's
still caching so is not a true solution, but it sounds like this would
be better than the time based caching you're doing now.
HTH,
Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
On Wed, 30 Jan 2008 07:32:54 -0800 (PST), Tageldinho
<adamtageldin@xxxxxxxxx> wrote:
....
Also, they have recently implemented a new caching system on the....
website so that everytime a user visits a page instead of the site
hitting the database everytime and storing the info in an object it
will load and place the object into the cash so that if someone else
visits that page it will look in the cache first and prevent it from
hitting the database (given the page has been loaded previously within
the last 20 minutes as this is the time the caching is set to expire).
After the 20 minutes is up it is automatically deleted from the
memory.
Adam
.
- References:
- Website Running Slow Please Help.
- From: Tageldinho
- Re: Website Running Slow Please Help.
- From: Samuel R . Neff
- Re: Website Running Slow Please Help.
- From: Tageldinho
- Re: Website Running Slow Please Help.
- From: Samuel R . Neff
- Re: Website Running Slow Please Help.
- From: Tageldinho
- Website Running Slow Please Help.
- Prev by Date: Re: Will .NET 2.0 Windows Services run under Windows 2000?
- Next by Date: RE: Response.Clear() doesn't clear
- Previous by thread: Re: Website Running Slow Please Help.
- Next by thread: Re: Viewstate expires?
- Index(es):
Relevant Pages
|