Is query caching/entity caching are related to both 1st and 2nd level caches or just to 2nd level cache?
Which is coming by default: query caching or entity caching?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The 1st level cache is enabled by default and provides entity caching for an instance of a NH session. Each individual NH session has it’s own 1st level cache.
The 2nd level cache (which has to be configured) provides entity caching across sessions, and also provides query caching when asked.
This link has more information: http://nhibernate.info/doc/nhibernate-reference/caches.html