Vlad Mihalcea High-performance Java Persistence Pdf Site
Solving the "N+1 query problem" using JOIN FETCH and EntityGraphs .
10 — Cultural and process implications vlad mihalcea high-performance java persistence pdf
In the evolving landscape of enterprise software development, the gap between application code and database internals has historically been a source of significant performance bottlenecks. Java developers, fluent in the nuances of the Java Virtual Machine (JVM), often treat the database as a mere persistence store—a black box to which data is sent and from which data is retrieved. This abstraction, while convenient for development speed, is often the Achilles' heel of modern applications. Solving the "N+1 query problem" using JOIN FETCH
: Explains how to use ORMs without sacrificing speed. Key highlights include efficient entity mappings, fetching best practices (avoiding EAGER fetching), and the impact of the Persistence Context size. This abstraction, while convenient for development speed, is
A particularly valuable section for developers distributing the PDF among teams is the deep dive into connection pooling. Mihalcea explains the physics of database connections—how they are established, why they are expensive, and how tools like HikariCP can be tuned. He moves beyond simple configuration to explain the relationship between connection pool size, database thread counts, and response time percentiles. This technical depth transforms the book from a coding manual into a system architecture guide.