Spring Data JPA: Non‑Obvious Performance Pitfalls
summary
An overview of performance pitfalls when using Spring Data JPA for data access in Spring applications. Covers concrete issues: why returning JPA entities from the service layer (not DTOs) matters, how fetching small collections can accidentally produce millions of rows, whether to load deep‑nested entities, and how disabling autocommit can dramatically increase application throughput.
AI-written summary · about
