Five PostgreSQL Anti-Patterns

As Rails developers, we’re taught that code is the expensive part and that the database will mostly take care of itself, as long as you throw enough RAM, CPU, and indexes at it. But that approach doesn’t lead to high performance.