Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10g (10.1.3.5.0)

Part Number E13981-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

JPA Entity Performance

To improve JPA entity performance, consider the following:

Bean Instance Pooling

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".

Fetch Type

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".