WAS v8.5 > Tune performance > Tune EJB applicationsTune applications that use the Java Persistence API
Subtopics
- Configure OpenJPA caching to improve performance
The OpenJPA implementation gives you the option of storing frequently used data in the memory to improve performance. OpenJPA provides concurrent data and concurrent query caches that support applications to save persistent object data and query results in memory to share among threads and for use in future queries.- JPA system properties
In addition to the settings that are accessible from the dmgr console, we can set JPA system properties using command-line scripting.- Configure WSJPA ObjectCache to improve performance
The WebSphere Java Persistence API (WSJPA) extension to OpenJPA provides a read-only object cache that can improve performance in certain use cases.- Pre-loading the WSJPA ObjectCache automatically
The WebSphere Java Persistence API (WSJPA) extension to OpenJPA provides a read-only ObjectCache that can improve performance in certain use cases. By default, the data in the cache is loaded in a lazy method, which means that individual entities are loaded into memory when they are requested by an application. To load all the entities from the beginning, though, we can configure the application server to preload all of the entities from the database configured in the ObjectCache. Pre-loading the ObjectCache will allow us to cache entities that would otherwise be restricted when if you load the ObjectCache through the lazy method.