~/talk

ORM Insights - How not to hurt yourself?

Talkat JDD 2024 · 2024-10-22..10-23· [databases]
links:none on file
slides:none on file

More than half of application performance bottlenecks trace to the database, so the talk demonstrates concrete JPA/Hibernate pitfalls and fixes: how persistence context snapshots and dirty checking use memory and CPU during flush, how lazy associations create N+1 queries and when to use join fetch, entity graphs or batch fetching, and how optimistic locking via @Version and optimistic-force-increment prevents lost updates. Alternatives and patterns include Spring Data JDBC, jOOQ, native queries, and the outbox pattern for reliably dispatching events after transaction commit.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 3:00Entity states and dirty checking
  3. 15:32Associations and loading strategies
  4. 24:49N+1 problem and solutions
  5. 32:48Transactions and locking
  6. 39:05Alternatives 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.