Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I am having big argument going on within my own head about using caching in our application which uses SQL, Oracle and DB2 as back-ends. Yes it uses all of them together because of legacy databases scattered all over.

Now I have seen the benefits of using caching by writing a small proof-of-concept application using memcached, but still I need to convince myself a little bit more.

My main question is that since the RDBMS's like SQL Server / Oracle have built in mechanisms to keep most frequently accessed data in memory, why do we need to duplicate that using third party caches?

I would love to know all pros and cons of using third party caching in applications (especially .Net).
Regards
Vijay
Posted

1 solution

Every DBMS has a mechanism to store frequently used database pages and statements in-memory. But they do not cache results so this is usually the point why use an extra cache solution between the client application and the RDBMS.

For example if contents of a web page is loaded from the DB, the query doesn't have to be executed every time and the same result returned to the caller. Using such cacheing solution reduces the DBMS workload and (usually) the amount of traffic in the network.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900