Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
What are the benefits and disadvantages to using HttpContext.Cache property. vs using a database? I had many post about database questions and such.
Posted
Updated 11-Jul-11 11:45am
v2

1 solution

One obvious benefit of a DB is that your data is not all in memory, it's on the DB server. One obvious benefit of caching data is that it's in memory already, as opposed to running SQL that needs to do joins and filtering, etc. However, in general, the benefits/costs depend on the nature of your web app, the nature if your data, and how many users you expect to have.
 
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