High-performance - Java Persistence.pdf
"High-Performance Java Persistence" by Vlad Mihalcea is a comprehensive guide to optimizing data access layers, bridging the gap between application development and database administration. It covers JDBC connection management, Hibernate tuning, and advanced jOOQ querying to maximize application performance. Learn more about the book at Vlad Mihalcea's website . High-Performance Java Persistence - Amazon.com
1. The Anatomy of the N+1 Query Problem
Batching and inserts/updates
- Debunk myths about Java persistence performance.
- Provide actionable advice for optimizing Java persistence.
2. Auto-Increment vs. Sequences
Did you know how the ID generation strategy affects batching? If you use IDENTITY (MySQL Auto-Increment), Hibernate disables JDBC batch inserts immediately because it needs the DB to generate the ID. ✅ The Fix: Use SEQUENCE identifiers (PostgreSQL, Oracle) to allow Hibernate to batch your inserts, reducing network chatter significantly. High-performance Java Persistence.pdf
Testing Methodology
:
