~/talk

Hibernate and Performance: Take Back Control

TalkinFrenchat Voxxed Days Luxembourg 2024 · 2024-06-20..06-21· [java, web-performance]
links:none on file
slides:none on file

Practical Hibernate performance fixes: enable hibernate.jdbc.batch_size and switch ID generation from IDENTITY to SEQUENCE to allow batching (example: 1000-film insert time falls from ~15s to <2s with batch sizes ~10–50). For very large imports use StatelessSession to reduce memory and time, disable OpenSessionInView, fix N+1 by replacing join fetch with two queries, mark read-only transactions, and use IN-clause padding to stabilize query plan reuse.

AI-written summary · about

  1. 0:00Introduction
  2. 9:13Hibernate and ORM
  3. 12:03Initial performance issue
  4. 21:12Batching inserts
  5. 27:52StatelessSession memory
  6. 33:17N+1 problem solved
  7. 40:03Optimizing read queries
  8. 45:02When to use Hibernate
  9. 46:30Q&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.