This post is going to help save you money if you're running a Rails server. It starts like this: you write an app. Let's say you're building the next hyper-targeted blogging platform for medium length posts. When you login, you see a paginated list of all of the articles you've written. You have a Post model and maybe for to do tags, you have a Tag model, and for comments, you have a Comment model
![N+1 Queries or Memory Problems: Why not Solve Both?](https://cdn-ak-scissors.b.st-hatena.com/image/square/a1b2a24fb8bb6b5daa830ba9854ce4ba0af7b021/height=288;version=1;width=512/https%3A%2F%2Fwww.herokucdn.com%2Fimages%2Fog.png)