Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Your question seems to be more related to the Cache pattern than to the NHibernate second level cache. see <a href="http://en.wikipedia.org/wiki/Cache_%28computing%29" rel="nofollow">Cache (computing)</a>.</p> <blockquote> <p>...a cache is a component that transparently stores data so that future requests for that data can be served faster...</p> </blockquote> <p>And that's it. If your application is doing any performance crictical operations, the second level cache can help you to serve them much more faster. </p> <p>NHibernate is caching queries by their complete set of parameters (paging, ordering, filters...) so even in simple scenario, providing the home or start page with a list of all articles, employees, tasks... which is served to almost all users ... you can save time and resources. </p> <p>Whenver there is a change in the underlying data, cache is (could be) cleared, and new data are reloaded. </p> <p>And because there are very smart Cache providers, you can use the NHibernate and caches even in web-farms. This is the first reading which you should go through:<a href="http://nhibernate.hibernatingrhinos.com/28/first-and-second-level-caching-in-nhibernate" rel="nofollow">First and Second Level caching in NHibernate</a></p> <p><em>SO: Not only for get by id or static data. Second level cache can improve performance even on transactional application with high traffic. Because even for a very short time, you can take data from a cache (e.g. memeora) and save some milliseconds...</em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload