~/talk

Performance oriented Spring Data JPA & Hibernate

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [java, databases]
links:none on file
slides:none on file

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

  1. 0:00Introduction and context
  2. 1:19Identifying performance issues
  3. 3:26Monitoring and detection tools
  4. 8:19Database connection management
  5. 23:42JPA and entity mapping
  6. 37:09Verification and testing
  7. 42:00Using projections and wrap-up
~/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.