Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide 10g (10.1.3.1.0) Part Number B28221-02 |
|
|
View PDF |
To improve JPA entity performance, consider the following:
For EJB 3.0 entities, using bean instance pooling can increase performance by reducing bean creation overhead. For more information, see "Managing the Bean Instance Pool".
For all EJB 3.0 mapping types, you can define the strategy for fetching data from the database as either lazy or eager. This can help improve performance when you know that certain portions of an entity are infrequently accessed. This is especially valuable for relationship mappings where it can reduce the amount of SQL that is executed, reduce query execution time, and reduce object loading time. For more information, see "Configuring Lazy Loading".