~/talk

When ORM Becomes OMG: Performance Pitfalls in JPA and Friends

Talkat JCON EUROPE 2026 · 2026-04-20..04-23· [databases, java]
links:none on file
slides:none on file

A demo app, FunFactStore, shows concrete JPA pitfalls and fixes: a unit test finds Hikari pool is ~5000x faster than DriverManager; leaving spring.jpa.open-in-view=true holds connections during view rendering causes 646 ms leases while external calls run; setting autoCommit=false and letting Hibernate know cuts connection hold time to ~11 ms; lazy many-to-one plus join fetch or DTO projections eliminate N+1 queries; TransactionTemplate isolates external calls and prevents pool exhaustion.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:43Connection pooling importance
  3. 11:48Optimizing connection usage
  4. 21:24Fun facts interlude
  5. 21:46JPA and Hibernate basics
  6. 25:17Eager vs lazy fetching
  7. 27:07First-level cache explained
  8. 30:58N+1 query problem
  9. 33:28DTO projections vs entity mapping
  10. 41:34JPA mapping best practices
  11. 44:02Helpful tools and resources
  12. 45:47Closing and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.