Editorials

Application Optimization Techniques – Cache

Application Optimization Techniques – Cache
If you haven’t picked up on the trend of the recent topics, I have been looking at different application optimization techniques. We looked at sharding as a way to take advantage of multiple CPUs to handle data persistence to a physical disk.

Today I wanted to introduce the concept of Cache. We all know Cache is king (pun intended). We are all pretty familiar with the way relational data engines use Cache to optimize performance for read/write and even query plans. Instead of writing data directly to disk, engines such as SQL Server write to cache, and have a lazy writer process handle the physical persistence.

Applications often use cache as well to assist in performance. For example, a web site might wish to cache data that is primarily static and is accessed often. There is a lot of data falling into this category. Lists of states or provinces are a good example of static data that is used frequently, yet very slow to change.

So how do you take advantage of cache? There are a number of different ways to do that. First, however, you have to have enough memory on your machine to take advantage of cache. This is the reason products such as MemCache have been developed.

Much like NoSQL databases taking advantage of Sharding, products like MemCache use sharding to disburse memory across multiple machines, extending the available cache memory available to an application to the sum of the available cache in each machine participating in a MemCache pool.

Why not share with our readers your caching tools and techniques. Drop me a note at btaylor@sswug.org.

Cheers,

Ben

SSWUG TV
With Stephen Wynkoop
Get the latest news on Silverlight…see it here on SSWUG TV.

$$SWYNK$$

Featured Article(s)
SQL Server 2012 ETL Framework Features in the New SSIS Catalog
One of the most frequently asked questions I get when I showcase the new SQL Server 2012 Integration Services SSIS catalog is, “how will these new features overlap or replace my existing ETL Framework?”

Featured White Paper(s)
MAXIMIZING SQL SERVER AVAILABILITY
Written by Stratus Technologies

Michael Otey, Technical Editor, SQL Server M… (read more)

Featured Script
dba3_fx_BusinessDaysInRangeFromvBusinessCalendar_Article
Modeling Date Logic III: Implementing Business Calendars (by example in MS Sql Server 2000)ttp://sswug.org/see/17379 Demo… (read more)