Caching

Figure 1125. JPA caches.

exercise No. 21

Testing caches

Q:

Import the following Hibernate based project:

  1. Insert 10000 randomly generated Person entries into your database.

  2. Measure time differences for loading 1000 entities in different sessions.

  3. Measure time differences for attribute based queries both with query cache enabled and disabled.