
EJB Performance Tuning
For example, you have this relationship defined in the
<relationships>
<multiplicity>One</multiplicity>
When a particular Order is loaded, you can load its related OrderLines by adding this to the
<default>
Now when an Order is retrieved, the CMP engine issues SQL to retrieve all related OrderLines with a SELECT statement that has the following WHERE clause:
OrderTable.OrderID = OrderLineTable.OrderLine_OrderID
This clause indicates an outer join. These OrderLines are
Chapter 2 • Tuning Your Application | 45 |