Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 05, 2012 07:03 AM by sandy060583
Nov 01, 2012 05:16 PM|LINK
I want to know how a Cache is better than a DataSet. A DataSet is itself a type of in-memory storage like cache.
But how is a cache better than DataSet? Is it because DataSet is stored server-side and cache on client-side?
Nov 01, 2012 05:19 PM|LINK
DataSet is a class to model rectangular data (tables, rows and columns) usually populated from a database query.
Cache in ASP.NET is a place to keep data in-memory with features that allow to you designate how long that data is maintained in-memory.
You can put a DataSet into the cache. You can put any type of object into the cache.
Nov 01, 2012 05:43 PM|LINK
But DataSet is also an in-memory storage? Is it stored client-side or server-side?
Nov 01, 2012 05:54 PM|LINK
DataSet is just an object just like any class you could write. How you store it is up to you, but since it's .NET this implies that it's part of your .NET code which is server-side (I'm assuming you're doing ASP.NET). There's nothing automatic about it.
Nov 01, 2012 06:04 PM|LINK
This, obviously means, Cache is on a local computer and so client-side. Correct me if I am wrong.
Nov 02, 2012 08:35 AM|LINK
In a web application, sometimes we require to store data in the server side to avoid costly data retrieval operation from data stores and time consuming data formatting logic to improve application performance as well
as to re-use the same data in subsequent requests across users, applications and machines. So, to achieve this we need to store (cache) data in the server side.
Caching helps us to achieve three important aspects of QoS (Quality Of Service):
Performance - Caching improves application performance by minimizing data retrieval and formatting operations.
Scalability - Since caching minimizes data retrieval and formatting operations, it reduces the load on server resources thus increasing the scalability of the application.
Availability - Since the application uses data from a cache, the application will survive failures in other systems and databases.
Caching can be serverside or client side. For more information please refer to the below link
Nov 05, 2012 07:03 AM|LINK
Cache is not on a local computer. It gets stored on web server memory.