~/talk

PostgreSQL and Java: Best Practices

Talkat PostgresOpen 2014 · 2014-09-17..09-19· [databases]
slides:none on file

Shows concrete outcomes and code: a GitHub repo with runnable examples, a psql-via-stdin trick that achieves 12,000 tables per second, comparison of drivers including the standard JDBC driver and PPG JDBC Next Generation (Netty based, binary mode), concrete JDBC fixes (no Class.forName on Java 6+, prefer try-with-resources, use prepared statements and server-side prepare threshold = 5), notes on COPY performance, SWIG JNI option, and recommends MyBatis and Juke for safer, more powerful DB access.

AI-written summary · about

  1. 0:00Introduction
  2. 2:27PostgreSQL and Java fit
  3. 8:27Connecting to PostgreSQL
  4. 18:48JDBC basics
  5. 24:04Fixing JDBC mistakes
  6. 33:16Prepared statements
  7. 40:27JDBC connection tips
  8. 43:54Model-View-Controller pattern in Java
  9. 45:00Java 8 database access
  10. 48:33JDBC SSL pitfalls
  11. 49:15Frameworks beyond JDBC
~/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.