~/talk

When ORM Becomes OMG: Performance Pitfalls in JPA and Friends

Talkat Jfokus 2026 · 2026-02-02..02-04· [databases]
links:none on file
slides:none on file

A demo funfact store uses Java 25, Spring Boot 4, Spring Data JPA, Hikari and Postgress with Testcontainers and a unit test that measures real effects. Connection pooling is 4,000× faster than DriverManager and Hikari defaults to max pool size 10. Leaving spring.jpa.open-in-view=true keeps connections during view rendering and increases latency from ~654 ms to 263 ms then to ~14 ms after disabling open‑in‑view and adjusting autocommit. Fixes include DTO projections or join‑fetch to avoid N+1 and using TransactionTemplate to keep connections held for the shortest time.

AI-written summary · about

  1. 0:00Introduction
  2. 2:17Client app and server setup
  3. 3:19Connection pools for DB
  4. 7:10Optimizing Spring Boot connections
  5. 13:55Debugging Hibernate timing
  6. 23:50JPA and Hibernate basics
  7. 27:23Lazy vs eager fetching
  8. 36:36DTO projections
  9. 43:50JPA mappings best practices
  10. 48:39Future plans for Fun Fact Store
~/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.