~/talk

PostgreSQL gotchas for app developers

Talkat foss-north 2019 · 2019-04-07..04-10· [databases]
slides:none on file

Covers concrete PostgreSQL pitfalls: connection pools multiplying into 5,000 connections and why pools are often too large; never grant superuser to the app and disable trust auth; JSON is for truly unstructured fields not for replacing columns; migrations that loop can turn into 400 million queries instead of a single UPDATE; pre‑v12 CTE optimization barrier can bork plans; ORMs causing N+1 queries and over‑selects, use array binding and JSON aggregates, prefer pushing work into the database and avoid per‑row loops.

AI-written summary · about

  1. 0:00Intro
  2. 0:17PostgreSQL Gotchas for App Developers
  3. 3:00So what's a gotcha?
  4. 3:39So, let's get started?
  5. 4:32Connection pooler
  6. 5:36Pooler issues
  7. 8:16Speaking of users
  8. 8:29Superuser
  9. 10:22Trust authentication
  10. 11:20JSON
  11. 14:39Migrations
  12. 23:05Representative data
  13. 25:36Generating data
  14. 28:53ORM overselect
  15. 30:35Simple table example
  16. 33:47Avoiding loops
  17. 34:33Forced joins
  18. 35:44Collecting aggregates
  19. 39:02What about structure
  20. 41:23Avoiding ORM loops Acting on multiple objects
  21. 44:08Binding arrays
  22. 45:33Deadlocks
  23. 47:55Thank you!
~/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.