Secondary cache in Hibernate

Let us understand Secondary cache in Hibernate Secondary cache is associated with the SessionFactory and hence its available to the entire application. So objects kept in the secondary cache are available across multiple sessions. Once the session factory is closed, secondary cache is cleared. How secondary cache works ? Whenever we try to load an […]

Share this article on

Query Cache in Hibernate

Let us understand the Query Cache We know that, Query cache will cache the results of the query against the object. If we have queries which runs multiple times with the same parameters then Query caching is best to use to avoid multiple DB calls. Let us see complete project on Hibernate Query cache Step […]

Share this article on
< Previous Next >