~/talk

Biggish Data With Rails and Postgresql

Talkat RailsConf 2014 · 2014-04-22..04-25· [databases, ruby-on-rails]
slides:none on file

Database conventions break once tables hit hundreds of millions of rows: Honeybadger runs ~1 TB of error rows and ingests ~2 GB/day, and naive count() or offset/limit pagination stalls (pages ~2000). Practical fixes are buying real hardware with lots of RAM and fast separate disks, using EXPLAIN and switching to range queries not offsets, tuning Linux read‑ahead and Postgres with PG‑tune, using partitioning for fast drops and pgbouncer/streaming replicas and Wall‑E for incremental backups.

AI-written summary · about

  1. 0:00Start
  2. 7:04ORACLE
  3. 11:39Lots of Disks (DB and OS on separate HDDs)
  4. 13:54Mo' rows Mo' problems
  5. 16:10Sorting (is tricky)
  6. 18:30Increase Read-Ahead
  7. 19:22Use a modern filesystem
  8. 20:05Tell PG about all that RAM
  9. 20:39Vacuum Regularly
  10. 22:14Too Many DB Connections
  11. 23:01Too Many Locks
  12. 25:14Intensive DB Queries
  13. 25:55Partitioning for deletion & archival
  14. 27:07Backups take forever
~/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.