High-performance Java Persistence.pdf

The preferred strategy for high performance. Use the pooled or pooled-lo optimizers to fetch a block of IDs (e.g., 50 at a time) in a single database round-trip, keeping batching fully intact. Fetch Types: Eager vs. Lazy