~/talk

Performance oriented Spring Data JPA & Hibernate

Talkat Voxxed Days Zürich 2024 · on Thursday, 2024-03-07· [databases, java]
links:none on file
slides:none on file

Covers concrete fixes: measure connection lease times with FlexiPool, spot N+1 with IDE tracing or Digma, and QuickPerf catches unexpected extra deletes in tests. Recommends disabling spring.jpa.open-in-view, setting autocommit=false to delay connections, and using transaction template to keep connections short. Shows surprising defaults (Tomcat 200 threads vs HikariCP default 10 connections; a trivial call leasing a connection for ~210ms) and practical JPA fixes: use getReference byId, entity graphs or projections for reads, and @DynamicUpdate for smaller updates.

AI-written summary · about

  1. 0:00Performance issues overview
  2. 2:41Identifying performance bottlenecks
  3. 6:21Database connection management
  4. 12:17Tooling for analysis and debugging
  5. 14:02Fixing common connection issues
  6. 23:20Optimizing entity persistence
  7. 28:36Managing entity relationships
  8. 33:50Automated performance testing
  9. 37:06Using projections for efficiency
  10. 42:13Key takeaways and conclusions
~/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.