~/talk

Who's the Fairest of Them All? Postgres Interface Performance

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

Automated C and Java clients plus a tiny Postgres extension measure durations for 268 test cases run three times across libpq (normal, one-row interface, copy interface), jdbc and odbc over BSD socket local TCP and remote TCP. Tests record connect-once vs connect every time, printing-to-file vs in-memory, and 50k/10M row strategies. Result: libpq’s one-row interface often wins, jdbc copy performs well, odbc trails, and the worst case (50k one-row remote connecting each time) blows up to ~400s versus ~0.3s for a bulk fetch — the harness runs reliably and yields reproducible numbers.

AI-written summary · about

  1. 0:00Intro
  2. 2:40Methodology
  3. 3:19Command Line Clients
  4. 4:10Launcher Script
  5. 4:50Commandline Clients
  6. 6:23Driver Tables
  7. 9:51Sequels
  8. 11:04Cartesian Join
  9. 13:25Row Tables
  10. 14:18Test Results Table
  11. 15:59Driver Function
  12. 17:10Launcher
  13. 17:41Source Code
  14. 19:14ODBC
  15. 20:07Java
  16. 20:56C Extensions
  17. 22:07The Sequel
  18. 22:47The Interface Variations
  19. 25:10Print Track Test
  20. 25:56Alternate Klein Copy
  21. 26:22Window Aggregate
  22. 30:25Window Grouping
  23. 30:50Local vs Local vs Remote
  24. 37:18TCP Performance
  25. 38:05DB Performance
  26. 39:20Remote Connection Performance
  27. 40:18Copy Interface Performance
  28. 41:35Open Source
~/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.