High Performance PostgreSQL for Rails: Reliable, Scalable, Maintainable Database Applications - Andrew Atkinson
Build faster, more reliable Rails apps by taking the best advanced PostgreSQL and Active Record capabilities, and using them to solve your application scale and growth challenges.