Performance oriented Spring Data JPA & Hibernate
summary
Shows concrete fixes: use a connection pool and turn off autocommit and disable Spring’s Open Session In View so connections aren’t held during external calls; measure with DataDog traces or FlexyPool / datasource-decorator logs; avoid PROPAGATION_REQUIRES_NEW and use TransactionTemplate to prevent occupying extra connections; fix N+1 by setting ManyToOne to lazy and using explicit join‑fetch queries or getReferenceById to skip selects; prefer Spring Data projections or dynamic projections for reads; run QuickPerf or Hypersistence Optimizer in tests to catch regressions.
AI-written summary · about
chapters (7)
- 0:00Introduction and context
- 1:19Identifying performance issues
- 3:26Monitoring and detection tools
- 8:19Database connection management
- 23:42JPA and entity mapping
- 37:09Verification and testing
- 42:00Using projections and wrap-up
related talks
44mPerformance oriented Spring Data JPA & Hibernate
51mWhen ORM Becomes OMG: Performance Pitfalls in JPA and Friends
47mWhen ORM Becomes OMG: Performance Pitfalls in JPA and Friends
45mWhen ORM Becomes OMG: Performance Pitfalls in JPA and Friends
52mJava Persistence and Hibernate Tips that can boost up your application performance
47mThere is always a choice. Spring Data JDBC vs. Hibernate. Taras Boychuk. Java Fest 2020 Online
46mMastering JPA Performance
46mThe State of Java Relational Persistence
