~/talk

A Journey to Postgres Productivity with Go

Talkat GopherCon Europe 2020 · 2020-06-15..06-18· [databases, go]
slides:none on file

Argues Postgres is the practical default for most persistent Go apps and demonstrates a working gRPC example repo wired to a real Postgres database using pgx, schema migrations via golang-migrate (embedded with go-bindata), query construction with Squirrel, and integration tests that spin up real containers with dockertest. Shows a concrete bug fix (make receiver a pointer to avoid mutating a copy), uses PGX types for UUID/arrays, and measures tests starting two containers and running in ~3.6s.

AI-written summary · about

  1. 0:00Start
  2. 4:14How Do We Store Data
  3. 5:54Types of Data Stores
  4. 6:48In-Memory Key Value Stores
  5. 8:09Mongodb
  6. 8:22Relational Databases
  7. 9:09Which Data Store
  8. 10:04How Do We Use Postgres with Go
  9. 11:16Generator Libraries
  10. 12:44Pgx
  11. 13:18Debug Logging of Queries
  12. 14:08Database Migrations
  13. 14:58Migration Library
  14. 15:40Write Migration Files
  15. 16:48How To Integrate the Migrations into Our Application
  16. 18:17Squirrel Parameters
  17. 20:50Docker Test
  18. 22:09Postgres Example Repo
  19. 22:26Initial Schema Migration
  20. 28:39Summary
  21. 29:18Questions
~/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.