Jump to ratings and reviews
Rate this book

High Performance PostgreSQL for Rails: Reliable, Scalable, Maintainable Database Applications

Rate this book
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. Gain the skills needed to comfortably work with multi-terabyte databases, and with complex Active Record, SQL, and specialized Indexes. Develop your skills with PostgreSQL on your laptop, then take them into production, while keeping everything in sync. Make slow queries fast, perform any schema or data migration without errors, use scaling techniques like read/write splitting, partitioning, and sharding, to meet demanding workload requirements from Internet scale consumer apps to enterprise SaaS.

Deepen your firsthand knowledge of high-scale PostgreSQL databases and Ruby on Rails applications with dozens of practical and hands-on exercises. Unlock the mysteries surrounding complex Active Record. Make any schema or data migration change confidently, without downtime. Grow your experience with modern and exclusive PostgreSQL features like SQL Merge, Returning, and Exclusion constraints. Put advanced capabilities like Full Text Search and Publish Subscribe mechanisms built into PostgreSQL to work in your Rails apps. Improve the quality of the data in your database, using the advanced and extensible system of types and constraints to reduce and eliminate application bugs. Tackle complex topics like how to improve query performance using specialized indexes. Discover how to effectively use built-in database functions and write your own, administer replication, and make the most of partitioning and foreign data wrappers. Use more than 40 well-supported open source tools to extend and enhance PostgreSQL and Ruby on Rails. Gain invaluable insights into database administration by conducting advanced optimizations - including high-impact database maintenance - all while solving real-world operational challenges.

Take your new skills into production today and then take your PostgreSQL and Rails applications to a whole new level of reliability and performance.

What You Need:

-A computer running macOS, Linux, or Windows and WSL2
-PostgreSQL version 16, installed by package manager, compiled, or running with Docker
-An Internet connection

456 pages, Paperback

Published July 23, 2024

17 people are currently reading
65 people want to read

About the author

Andrew Atkinson

1 book10 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
20 (80%)
4 stars
5 (20%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 6 of 6 reviews
1 review1 follower
May 31, 2024
This book bridges the the most common gap that Rails developers face, which is a deep understanding of their Postgres database and how to achieve top performance from their tools.

For me this was one of the only times I've finished a development book and been fully satisfied with the material and knowledge gained. The author leaves no stone left unturned, has excellent code examples that are easy to follow and has a relatable writing style that kept me engaged from start to finish.
1 review1 follower
August 28, 2024
This is a very good reference book. I follow Andrew on X/Twitter and he knows his stuff around PostgreSQL and Rails. I bought this book initially for the chapters surrounding performance, of which there are plenty. Andrew is very to-the-point in his writing style. Favourite sections of mine include the index optimization and working with bulk data. Overall, I would recommend this book as a primer on PG performance in the context of Rails deployments as required reading material for most engineering teams.
1 review
September 17, 2024
This is a great book, with several powerful resources to build high performant and cost-effective databases for rails apps. This is a superpower that every rails dev should posses.
1 review
March 4, 2025
This is one of the best tech books I read in 2024. If you're serious about scaling your Rails app, it's an absolute must-read. Insightful, practical, and packed with real-world strategies.
1 review1 follower
March 7, 2024
Andy presents so many useful Postgres concepts that it's hard to believe anything about Rails even fits in the book!

If you are a Rails engineer who always wanted to understand how to have a greater impact on your work through taking command of your database, this is the book for you!
Profile Image for JP.
1 review1 follower
June 13, 2024
"The High Performance PostgreSQL for Rails Challenge" - an attempt to read this book without finding something useful in every chapter. Despite having used PostgreSQL for several years, I came away from every chapter with a new insight - usually several.

If you use Rails and Postgres, this book is required reading.

If you use Postgres and a different framework, you will still get a ton of value out of it. Every section goes deep and you'll glean something new about building with Postgres on every re-read.
Displaying 1 - 6 of 6 reviews

Can't find what you're looking for?

Get help and learn more about the design.