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.
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
rpk2006
Member
631 Points
631 Posts
How Caching is different than a DataSet?
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?
cache
BrockAllen
All-Star
28084 Points
4997 Posts
MVP
Re: How Caching is different than a DataSet?
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.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
rpk2006
Member
631 Points
631 Posts
Re: How Caching is different than a DataSet?
Nov 01, 2012 05:43 PM|LINK
But DataSet is also an in-memory storage? Is it stored client-side or server-side?
BrockAllen
All-Star
28084 Points
4997 Posts
MVP
Re: How Caching is different than a DataSet?
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.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
rpk2006
Member
631 Points
631 Posts
Re: How Caching is different than a DataSet?
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.
sureshkumar....
Contributor
2143 Points
504 Posts
Re: How Caching is different than a DataSet?
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
http://madskristensen.net/post/Server-side-and-client-side-caching-in-ASPNET.aspx
Best Regards,
Suresh Kumar Gundala
sandy060583
Star
8728 Points
1626 Posts
Re: How Caching is different than a DataSet?
Nov 05, 2012 07:03 AM|LINK
Cache is not on a local computer. It gets stored on web server memory.
Ramani Sandeep (My Blog)
(MCTS, MCC-2011)