~/talk

Postgres at any Scale

Talkat Birmingham on Rails 2020 · on Friday, 2020-01-31· [databases]
slides:none on file

Concrete takeaways: Postgres handles everything from <10 GB to multi‑node sharded clusters, with a real case of running 1.5 million Postgres databases on a small ops team; use JSONB + GIN for nested data, target a 99% cache hit ratio before premature tuning, add PG Bouncer for connection pooling, switch from pg_dump to physical backups (pgbackrest/stream WAL) past ~100 GB, test restores, and consider Citus or 128+ shard hashing with colocation when reads/writes outgrow a single instance.

AI-written summary · about

  1. 0:00Intro
  2. 0:36The database is just a hash
  3. 1:09A bit about me
  4. 2:35The biggest mistake Postgres ever made - 2006
  5. 3:53Why Postgres TLDR
  6. 5:05Unique as open source
  7. 5:44The structure of the community
  8. 6:51How the project works
  9. 8:02Data types
  10. 9:53Feature rich SQL
  11. 11:10Indexing
  12. 13:46Procedural code
  13. 16:00Some pro-tips
  14. 18:05Small data ( 10 GB)
  15. 19:55Cache rules everything around me
  16. 20:43Index hit rate
  17. 21:26Unused indexes
  18. 22:22Rough guidelines
  19. 23:00Establishing a connection
  20. 23:31Postgres is bad at connections
  21. 24:55Pgbouncer is ideal solution
  22. 25:59Logical backup
  23. 27:06Slow performance?
  24. 27:22Horizontal scaling
  25. 29:15Citus Architecture
  26. 30:53Hash based distribution
  27. 32:29Reference tables for tables you can't colocate
  28. 33:12Sharding
~/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.