3.3.1.31. openjpa.DynamicDataStructs
Property name: openjpa.DynamicDataStructs
Configuration API: org.apache.openjpa.conf.OpenJPAConfiguration.getDynamicDataStructs
Resource adaptor config-property: DynamicDataStructs
Default: false
Description: Whether to dynamically generate customized structs to hold persistent data.
Both the OpenJPA data cache and the remote framework rely on data structs to cache and transfer persistent state.
With dynamic structs, OpenJPA can customize data storage for each class, eliminating the need to generate primitive wrapper objects.
This saves memory and speeds up certain runtime operations.
The price is a longer warm-up time for the application - generating and loading custom classes into the JVM takes time.
Therefore, only set this property to true if you have a long-running application where the initial cost of class generation is offset by memory and speed optimization over time.