~/talk

Hibernate performance tuning

Talkat JavaDay Kharkiv 2016 · on Saturday, 2016-09-17· [databases]
links:none on file
slides:none on file

Hands‑on recipe for fixing real Hibernate bottlenecks with runnable examples on GitHub: measure with JMH and Hibernate statistics, capture SQL with p6spy or datasource‑proxy and a counting interceptor, and write tests that assert exact query counts (example: 10 clients/13 accounts produced 11 queries). Tactics include fetch join and entity graphs to remove N+1, JDBC batching and batch‑fetching (batch size pitfalls explained), connection‑pool choice, second‑level cache tradeoffs, ID generator strategies and when to use stateless sessions or read‑only transactions.

AI-written summary · about

  1. 0:00Introduction
  2. 3:21What is Hibernate
  3. 6:11Measuring performance
  4. 12:34JDBC-level tuning
  5. 16:25N+1 query problem
  6. 27:10Batch operations and flushing
  7. 32:15Second-level cache
  8. 39:06Query optimization
  9. 43:08Entity alternatives
  10. 47:42ID generation and load
  11. 51:19Summary and resources
~/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.