~/talk

Hibernate: Mapping Strategies and Their Database Performance Impact

Talkat JCON EUROPE 2024 · 2024-05-13..05-16· [databases, java]
slides:none on file

Compares Hibernate mapping choices by showing actual SQL and costs: sequence vs identity (default sequence cache 50 causes nextval calls; identity avoids nextval but prevents batching), batch size and Postgres driver rewriting inserts (rewriteBatchedInserts turns many single INSERTs into a multi‑row INSERT), random UUIDs fragment B‑tree indexes while time/ordered UUIDs or DB‑side IDs reduce IO, OFFSET pagination reads and skips rows while key‑based pagination jumps to the index, and dynamic update limits UPDATE to changed columns to cut redo/undo and index maintenance.

AI-written summary · about

  1. 0:00Introduction to ORM mapping
  2. 2:47Data ingestion strategies
  3. 11:55Batching and driver behavior
  4. 17:47Mapping design considerations
  5. 20:23Fetching and query efficiency
  6. 28:49Optimizing index usage
  7. 30:51Pagination and data models
  8. 34:25Dynamic updates in ORMs
  9. 38:54Conclusion and Q&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.