~/talk

When ORM Becomes OMG: Performance Pitfalls in JPA and Friends

Talkat Voxxed Days CERN 2026 · on Tuesday, 2026-02-10· [databases, java]
links:none on file
slides:none on file

A sample app FunFactStore uses Postgres, Java 25, Spring Boot 4, Spring Data JPA and Hikari to show concrete pitfalls: connection pooling is ~1000x faster than DriverManager (1,000 pool attempts in milliseconds vs ~4,000 ms with DriverManager), default pool size 10 causes spinners if connections are held, open session in view keeps connections for ~649 ms vs ~12 ms when disabled, set autoCommit/providedDisableAutoCommit, use TransactionTemplate to avoid long-held connections, prefer lazy many‑to‑one, join fetch or DTO projections (JPQL/native/interface), use Hikari debug, Testcontainers, IntelliJ and Gatling for diagnosis.

AI-written summary · about

  1. 0:00Introduction
  2. 3:34Connection pooling essentials
  3. 10:54Open Session in View
  4. 18:55Connection management best practices
  5. 21:04JPA and Hibernate basics
  6. 25:19Eager vs lazy loading
  7. 31:20N+1 queries solution
  8. 35:18DTO projections
  9. 39:58JPA mappings
  10. 43:31Conclusion 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.