Blog Home  Home Feed your aggregator (RSS 2.0)  
What did you learn today? - 70-442 - Part II - Caching
Phil Denoncourt's Technology Rants
 
 Thursday, March 02, 2006
70-442 - Part II - Caching by phildenoncourt

PRO: Designing and Optimizing Data Access by Using Microsoft SQL Server 2005

Design caching strategies.

  • Select ADO.NET caching.
  • Design custom caching functionality.
  • Design a refresh strategy for cached data.

ADO.NET doesn't have a cache.  ASP.NET does.  ADO.NET retrieves results into objects like DataSets that can be cached in the ASP.NET cache or your own Cache app.

Designing your caching functionality seems like a lot of work.  You have to manage the size of the cache, object expiration, object invalidation.  I use the Enterprise library and that provides a lot of the plumbing.

Refreshing cached data is done using Query Notifications via the SqlDependency or SqlNotificationRequest objects.  There is a good article on MSDN outlining how to set this up.  Steve Smith mentions the changes that have occured since Beta 2 on his blog.

Next up->Client Libraries

Thursday, March 02, 2006 1:07:33 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]   Certifications  | 
Copyright © 2010 Phil Denoncourt III. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: