<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Quickly Setting Up And Using NHibernate&#8217;s Second Level Cache</title> <atom:link href="http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/feed/" rel="self" type="application/rss+xml" /><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/</link> <description>inquisitive: adjective. given to inquiry, research, or asking questions; eager for knowledge; intellectually curious</description> <lastBuildDate>Sun, 20 May 2012 21:55:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: abc</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-99403</link> <dc:creator>abc</dc:creator> <pubDate>Thu, 26 May 2011 10:49:00 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-99403</guid> <description>Alachisoft
is a California Corporation under the legal name Diyatech Corp. Alachisoft provides companies powerful yet simple way to improve
the performance of their .NET applications and also to cut down their
development cycle with improved code quality. Products are NCache (Boost .NET App Performance &amp; Scalability), StorageEdge
(Optimized Storage for SharePoint) and TierDeveloper (Rapidly Develop .NET
Applications)Link:   “http://fr.alachisoft.com/”</description> <content:encoded><![CDATA[<p>Alachisoft<br
/> is a California Corporation under the legal name Diyatech Corp. Alachisoft provides companies powerful yet simple way to improve<br
/> the performance of their .NET applications and also to cut down their<br
/> development cycle with improved code quality. Products are NCache (Boost .NET App Performance &amp; Scalability), StorageEdge<br
/> (Optimized Storage for SharePoint) and TierDeveloper (Rapidly Develop .NET<br
/> Applications)</p><p>Link:   “http://fr.alachisoft.com/”</p> ]]></content:encoded> </item> <item><title>By: wes</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-94016</link> <dc:creator>wes</dc:creator> <pubDate>Wed, 19 Jan 2011 10:13:47 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-94016</guid> <description>@ Reggie: whenever you delete/modify something in database, it is also upgraded in cache as well as 2L cache is synchronized with database. A lot of 2l cache provider like NCache has support of SQL dependencies. Whenever there is a modification in database it sends a notification. For further study, please visit this link.http://www.alachisoft.com/ncache/nhibernate_l2cache_index.html</description> <content:encoded><![CDATA[<p>@ Reggie: whenever you delete/modify something in database, it is also upgraded in cache as well as 2L cache is synchronized with database. A lot of 2l cache provider like NCache has support of SQL dependencies. Whenever there is a modification in database it sends a notification. For further study, please visit this link.</p><p><a
href="http://www.alachisoft.com/ncache/nhibernate_l2cache_index.html" rel="nofollow">http://www.alachisoft.com/ncache/nhibernate_l2cache_index.html</a></p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-23333</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Mon, 28 Dec 2009 08:33:31 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-23333</guid> <description>@Reggiethe SysCache2 provider is supposed to support SQL Dependencies but i&#039;ve never tried it.generally speaking though, deleting/updating date directly in a production database is a _bad_ idea and will of course negatively impact pretty much any kind of caching</description> <content:encoded><![CDATA[<p>@Reggie</p><p>the SysCache2 provider is supposed to support SQL Dependencies but i&#8217;ve never tried it.</p><p>generally speaking though, deleting/updating date directly in a production database is a _bad_ idea and will of course negatively impact pretty much any kind of caching</p> ]]></content:encoded> </item> <item><title>By: Reggie</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-23331</link> <dc:creator>Reggie</dc:creator> <pubDate>Mon, 28 Dec 2009 06:53:04 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-23331</guid> <description>Hello Davy,i&#039;m am new to nhibernate and currently learning about the 2nd level cache..i have a question.what if the data is deleted or modified directly to the database table(not the cache)?using sql update or delete statements of course.can it still synchronize the data correctly?Thanks,
Reggie</description> <content:encoded><![CDATA[<p>Hello Davy,</p><p>i&#8217;m am new to nhibernate and currently learning about the 2nd level cache..</p><p>i have a question.</p><p>what if the data is deleted or modified directly to the database table(not the cache)?</p><p>using sql update or delete statements of course.</p><p>can it still synchronize the data correctly?</p><p>Thanks,<br
/> Reggie</p> ]]></content:encoded> </item> <item><title>By: Kevin Clark</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-14393</link> <dc:creator>Kevin Clark</dc:creator> <pubDate>Tue, 05 May 2009 12:57:25 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-14393</guid> <description>Nice post. i would like to mention here that NCache is out with its new version with much better support for &lt;a href=&quot;http://www.alachisoft.com/ncache/nhibernate_index.html&quot; rel=&quot;nofollow&quot;&gt;NHibernate Cache&lt;/a&gt;. It can boost NHibernate performance and scalibility.</description> <content:encoded><![CDATA[<p>Nice post. i would like to mention here that NCache is out with its new version with much better support for <a
href="http://www.alachisoft.com/ncache/nhibernate_index.html" rel="nofollow">NHibernate Cache</a>. It can boost NHibernate performance and scalibility.</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-9023</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Sat, 21 Feb 2009 12:37:04 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-9023</guid> <description>not sure about the role thing either, haven&#039;t used it yetare you sure the lifetime of your session isn&#039;t too long? If you have to load a list of objects, possibly modifying them, then having to discard your changes and having to reload them all within the same session, then you might be doing too much here.An ISession is like a Unit Of Work... you should try to keep those pretty short.</description> <content:encoded><![CDATA[<p>not sure about the role thing either, haven&#8217;t used it yet</p><p>are you sure the lifetime of your session isn&#8217;t too long? If you have to load a list of objects, possibly modifying them, then having to discard your changes and having to reload them all within the same session, then you might be doing too much here.</p><p>An ISession is like a Unit Of Work&#8230; you should try to keep those pretty short.</p> ]]></content:encoded> </item> <item><title>By: Hitesh</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-9022</link> <dc:creator>Hitesh</dc:creator> <pubDate>Sat, 21 Feb 2009 11:55:50 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-9022</guid> <description>Hi.
Thanks for the imediate response.
1. Yes, I am using the same session object the second time. I cannot use session.clear since the session object is being used for populating other objects too.2. .Evict requires a single object as a parameter. However, there may be a situation where i make changes to more than one object (ex. i modify 3 objects in the list.) In such a case, I will need to loop through the list and evict each object one by one. Is there a way to avoid the loop.3. I see that there is sessionFactory.EvictCollection method. This evicts all the lists created using that session Factory. However, there is overloaded sessionFactory.EvictCollection(rolename as string). But I am not able to figure out when and how to create a &#039;role&#039;.Thanks again.Hitesh.</description> <content:encoded><![CDATA[<p>Hi.<br
/> Thanks for the imediate response.<br
/> 1. Yes, I am using the same session object the second time. I cannot use session.clear since the session object is being used for populating other objects too.</p><p>2. .Evict requires a single object as a parameter. However, there may be a situation where i make changes to more than one object (ex. i modify 3 objects in the list.) In such a case, I will need to loop through the list and evict each object one by one. Is there a way to avoid the loop.</p><p>3. I see that there is sessionFactory.EvictCollection method. This evicts all the lists created using that session Factory. However, there is overloaded sessionFactory.EvictCollection(rolename as string). But I am not able to figure out when and how to create a &#8216;role&#8217;.</p><p>Thanks again.</p><p>Hitesh.</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-9020</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Sat, 21 Feb 2009 10:40:31 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-9020</guid> <description>when you call the List method through Criteria again, are you still using the same session as you were using when you retrieved the objects the first time? If so, those modified entities are in your _first_ level cache (which is stored at the session level) and those are probably the results you&#039;re getting backIf you are using the same session, try to .Clear the session before reloading the objects or .Evict the one you modified</description> <content:encoded><![CDATA[<p>when you call the List method through Criteria again, are you still using the same session as you were using when you retrieved the objects the first time? If so, those modified entities are in your _first_ level cache (which is stored at the session level) and those are probably the results you&#8217;re getting back</p><p>If you are using the same session, try to .Clear the session before reloading the objects or .Evict the one you modified</p> ]]></content:encoded> </item> <item><title>By: Hitesh</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-9019</link> <dc:creator>Hitesh</dc:creator> <pubDate>Sat, 21 Feb 2009 10:20:24 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-9019</guid> <description>Hi,
The above post explains caching really well. But there is something that I am missing.
Following is the scenario which is failing. Can u guide me to the correct approach.1. I populate the list using ICriteria. For example, I populate the list with student objects.
2. I have 4 students in the collection.
3. I edit the first object and change the &#039;name&#039; property from Paul to Patrick.
4. I donot save or rollback.
4. I then need to undo the change, so I wish to re-populate the list from the database. Hence I call the List method of the ICriteria object once again.
5. This time I once again get 4 student objects, but the edited object&#039;s &#039;name&#039; property still shows me Patrick and not Paul.How do I refresh the collection from the database?I have added all the tags as sepcified in your post to enable the second level cacheThanks in dvance.
-Hitesh.</description> <content:encoded><![CDATA[<p>Hi,<br
/> The above post explains caching really well. But there is something that I am missing.<br
/> Following is the scenario which is failing. Can u guide me to the correct approach.</p><p>1. I populate the list using ICriteria. For example, I populate the list with student objects.<br
/> 2. I have 4 students in the collection.<br
/> 3. I edit the first object and change the &#8216;name&#8217; property from Paul to Patrick.<br
/> 4. I donot save or rollback.<br
/> 4. I then need to undo the change, so I wish to re-populate the list from the database. Hence I call the List method of the ICriteria object once again.<br
/> 5. This time I once again get 4 student objects, but the edited object&#8217;s &#8216;name&#8217; property still shows me Patrick and not Paul.</p><p>How do I refresh the collection from the database?</p><p>I have added all the tags as sepcified in your post to enable the second level cache</p><p>Thanks in dvance.<br
/> -Hitesh.</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-9000</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Fri, 20 Feb 2009 15:04:30 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-9000</guid> <description>it definitely works, although i&#039;m not sure if it&#039;a actually a good idea to do so... i don&#039;t really think there&#039;s a problem with it, but you might want to investigate possible downsides to using the ASP.NET cache outside of the ASP.NET environment.</description> <content:encoded><![CDATA[<p>it definitely works, although i&#8217;m not sure if it&#8217;a actually a good idea to do so&#8230; i don&#8217;t really think there&#8217;s a problem with it, but you might want to investigate possible downsides to using the ASP.NET cache outside of the ASP.NET environment.</p> ]]></content:encoded> </item> <item><title>By: Miha Necak</title><link>http://davybrion.com/blog/2009/02/quickly-setting-up-and-using-nhibernates-second-level-cache/comment-page-1/#comment-8999</link> <dc:creator>Miha Necak</dc:creator> <pubDate>Fri, 20 Feb 2009 14:52:21 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=918#comment-8999</guid> <description>Since one can use ASP.NET Cache outside web development, do you think SysCache will work in a WinForms app for example as well? I haven&#039;t tried it yet, but it seems that it should. What do you thik would be the downfalls of such ussage?</description> <content:encoded><![CDATA[<p>Since one can use ASP.NET Cache outside web development, do you think SysCache will work in a WinForms app for example as well? I haven&#8217;t tried it yet, but it seems that it should. What do you thik would be the downfalls of such ussage?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/15 queries in 0.009 seconds using disk: basic
Object Caching 487/488 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d18sni7re4ly7f.cloudfront.net

Served from: davybrion.com @ 2012-05-22 10:56:36 -->
