Double Dream Hands: So Intense!
summary
Adds prepared statement caching to Rails 3.1 with the same front‑end API so existing code gets faster on Postgres (benchmarks show ~4,600 → ~5,500 qps) while MySQL can regress because it defers planning and forces extra round trips. Refactors serialized attributes into a pluggable serialize with coder API (JSON, Marshal, Base64, encryption) so arbitrary coders can load/dump. Implements streaming via Rack body.each and a body proxy to delay evaluation and keep DB connections open, and highlights stack depth growth (51→60→67) that increases GC pressure.
AI-written summary · about
chapters (6)
- 0:00Introduction and welcome
- 1:20New features in Rails 3.1
- 24:33Secure password critique
- 26:46Streaming responses and middleware
- 34:12Performance and future goals
- 40:02Pro tips and conclusion








