2nd level cache requires multiple configuration points and if it's not configured properly can actually be a detriment to preformance. you need to: 1. enable 2nd level cache in the config file 2. define the 2nd level cache implementation (syscache, syscache2, memcache, etc) 3. define which entities you want cached.
you can also cache queries as well which requires additional configuration 1. enable query caching in the config file 2. set the query itself to cache. 2nd level cache should be used as a last resort to boost preformance though. usually fine tuning db indexes, or sql statements can boost overall preformance better than 2nd level cache. 2nd level cache operations occur in conjunction with transactions. so if you have any CRUD statements executed outside of a NH transaction they will not be processed by 2nd level cache. On Apr 6, 11:57 am, reggieboy <[email protected]> wrote: > Hello guys, > > I am currently working on a winforms application and want to use the > 2nd level cache (pls tell me if its even advisable). > > Do any of you could give me some pointers on how to use it properly on > a winforms application. > > By the way for additional info. im using uNhaddins' CpBT AOP facilty > for session management. > > So if ever there could be some conflict. Pls feel free to speak.. > > Thank you. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
