<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Cache Dependencies</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx</link><description>A little while back I wrote an article on SQL Cache Dependencies. I had a colleague ask about these today so I think it's time to blog it. (For more information, I also did a podcast some time back with my old mates Wally McClure and Paul Glavich from</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: SQL Cache Dependencies</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx#7168</link><pubDate>Fri, 06 Jun 2008 13:03:38 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7168</guid><dc:creator>JX</dc:creator><description>&lt;p&gt;and not to say, the difficulty to incoporate the use of this cache notification into the layered data access architecture. &lt;/p&gt;</description></item><item><title>re: SQL Cache Dependencies</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx#7169</link><pubDate>Fri, 06 Jun 2008 13:04:24 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7169</guid><dc:creator>JX</dc:creator><description>&lt;p&gt;The notification implementation for sql 2005 is not good at all. basically it's something that wants to cover all situations, it's too complex, its performance gain, i dont know, if any, &amp;nbsp;very limited, the extra cost in query plan, and the timeout pulse period can not be configured, and the too many constraint if you really want to use this mechanism. Basically, it's something that sounds nice, but not practical.&lt;/p&gt;</description></item><item><title>re: SQL Cache Dependencies</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx#7170</link><pubDate>Fri, 06 Jun 2008 13:50:21 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7170</guid><dc:creator>Greg Low</dc:creator><description>&lt;p&gt;Have to disagree I'm afraid. I've used it quite a bit with cache refreshing and it works a treat. I'm not sure why you suspect it has a great cost in the query plan or why you feel it's complex. From ado.net for example, you instantiate a sqldependency object, wrap it around a command and then handle the event that occurs when the data changes. It's hard to imagine it being much easier than that.&lt;/p&gt;
&lt;p&gt;What timeout pulse period are you looking to configure? It is event driven not polled. The only restrictions are on the types of query that can be used but these are no different to those for indexed views.&lt;/p&gt;
</description></item><item><title>re: SQL Cache Dependencies</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx#7723</link><pubDate>Tue, 08 Jul 2008 13:19:30 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7723</guid><dc:creator>ES</dc:creator><description>&lt;p&gt;Does this operate successfully with stored procedures?&lt;/p&gt;</description></item><item><title>re: SQL Cache Dependencies</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx#10002</link><pubDate>Wed, 19 Nov 2008 10:01:18 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:10002</guid><dc:creator>Edmartinez</dc:creator><description>&lt;p&gt;Good Work Greg! Very detailed post on SQL Cache dependencies, well my opinion is bit different ASP.NET cache is good but only on a single server environment. As we try to scale out to a server farm; we start facing problems. I think instead of relying on SQL Cache dependencies in ASP.NET Cache we should go for distributed caching because it is scalable and highly reliable.&lt;/p&gt;</description></item><item><title>A year in review, The 31 best blog posts on SQLBlog for 2008</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx#10849</link><pubDate>Wed, 31 Dec 2008 15:37:50 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:10849</guid><dc:creator>Denis Gobo</dc:creator><description>&lt;p&gt;Wow, it has been already a year since I wrote A year in review, The 21 + 1 best blog posts on SQLBlog&lt;/p&gt;
</description></item><item><title>re: SQL Cache Dependencies</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx#14591</link><pubDate>Wed, 10 Jun 2009 20:42:02 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14591</guid><dc:creator>Rich</dc:creator><description>&lt;p&gt;Is this something that can be done for some users and not for others. For instance wrap it in something like &lt;/p&gt;
&lt;p&gt;if StaffID = 13 then&lt;/p&gt;
&lt;p&gt;do cachedependecy and refresh&lt;/p&gt;
&lt;p&gt;else&lt;/p&gt;
&lt;p&gt;regualr db refresh&lt;/p&gt;
&lt;p&gt;end if&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>re: SQL Cache Dependencies</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx#14595</link><pubDate>Thu, 11 Jun 2009 03:43:02 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14595</guid><dc:creator>Greg Low</dc:creator><description>&lt;p&gt;On a per-user basis you could decide where you get the data from (ie: cache or not) but that's certainly not the standard use case.&lt;/p&gt;
</description></item><item><title>re: SQL Cache Dependencies</title><link>http://sqlblog.com/blogs/greg_low/archive/2008/02/25/sql-cache-dependencies.aspx#20053</link><pubDate>Thu, 17 Dec 2009 07:03:15 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:20053</guid><dc:creator>Sameer Chachad</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This was a indeed a very good article. &lt;/p&gt;
&lt;p&gt;There are a few things that I would like to know - What are the differences of Data Caching and SQL Cache dependancy.&lt;/p&gt;
&lt;p&gt;We had implemented the SQL Cache dependancy in our last project but had to discontinue it as due to notifications some of the transactions were very slow.&lt;/p&gt;
&lt;p&gt;Currently I am designing a framework for my client and I have implemented Data caching. &lt;/p&gt;
&lt;p&gt;The problem with this feature is that, currently I am doing a POC on a single Web Server, but the application has to be deployed on the proper multi server environment (maybe web farm). If I am using Data caching then it doesnt help as multiple users would access the same cache, and if cache is invalidated, then the data would be inconsistent for some users. One approach is attaching the SessionID (UserID) with the Cache object for each user, but then if you have more number of concurrent users then I think it is not advisable to have this feature as the Server would become very heavy.&lt;/p&gt;
&lt;p&gt;I read an article on Velocity, but cannot implement that for a POC.&lt;/p&gt;
&lt;p&gt;Kindly suggest. &lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>