March 2015
Intermediate to advanced
284 pages
6h 13m
English
CHAPTER 12
![]()
Caching in Hibernate
Caching is one of the important features implemented by an application for better performance. From an ORM perspective, data retrieved from a database is cached in memory or to disk, so there is no need to make a call to the database for every request. A cache is a local copy of the information from the database that can be used to avoid a database call whenever the following situations occur:
In Figure 12-1, when an application queries for data the first time, Hibernate fetches it from the database; ...
Read now
Unlock full access