~/talk

Use PostgreSQL, not Rails, to make Rails Faster!

Talkat PostgresOpen 2014 · 2014-09-17..09-19· [databases, ruby-on-rails]
links:none on file
slides:none on file

Claims that shifting work into PostgreSQL — using arrays, GIN index, hstore/jsonb, window functions and CTEs — removes ActiveRecord churn and cuts latency. Benchmarks on 100k notes show a contains+GIN lookup dropping to 8 ms and array approaches beating joins; returning DB-built JSON payloads yields about 5x faster responses while offloading CPU to Postgres. A small gem prototypes CTE/rank helpers and DB-side jsonb serialization; it works but stresses the database and trades DB load for app-server savings.

AI-written summary · about

  1. 0:00Start
  2. 5:31Tagging
  3. 5:57Many to Many relation
  4. 6:22Using Arrays for tags
  5. 6:40Adding our tags array to the model
  6. 6:56Finding Tagged Notes
  7. 8:21Some Benchmarking
  8. 12:13Single Table Inheritence
  9. 16:16Leaderboards
  10. 17:34Using Common Table Expressions to get the ranks of a User's Scores
  11. 30:28Next Steps
  12. 32:07Wrapping Up
~/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.