~/talk

Postgres Performance for Humans

Talkat Ancient City Ruby 2014 · 2014-04-03..04-04· [databases]
slides:none on file

Targets concrete metrics and actions: aim for 99% cache hit and ~95% index hit rate, use pg_stat_statements to find the queries that consume the most time, and fix a 295 ms query by adding an index to drop it to ~1.7 ms. Enable extensions like jsonb in 9.4 or hstore with GIN indexes, create indexes concurrently in production, use pgbouncer past ~200 connections, prefer physical backups with wally/barman at scale, and add RAM as the simplest performance lever.

AI-written summary · about

  1. 0:00Introduction to Postgres
  2. 1:11The history of the project
  3. 2:13Setup and configuration
  4. 4:50Optimizing cache and memory
  5. 6:11Index basics
  6. 7:16Tooling and utilities
  7. 8:21How data is retrieved
  8. 9:52Query analysis with EXPLAIN
  9. 12:35Monitoring with pg_stat_statements
  10. 14:20Advanced index types
  11. 17:29Functional and conditional indexes
  12. 20:21Hstore and JSON support
  13. 23:39Connection pooling
  14. 24:55Replication strategies
  15. 26:37Backups and recovery
  16. 28:56Recap and conclusion
~/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.