Tuesday, 13 February 2018

What is Caching And the type of Hibernate caching?

Caching is all about application performance optimisation and it sits between your application and the database to avoid the number of database hits as many as possible to give a better performance.

Hibernate provides the out-of-box caching solution but there are many caches e.g. first level cache, second level cache and query cache. First level cache is maintained at Session level and cannot be disabled but the second level cache is required to be configured with external cache provider like EhCache.


No comments:

Post a Comment