Rootstrap Blog

Bruno Vezoli

Total 4 Posts

Rails N + 2 queries

We usually try to solve performance problems by using #includes to get rid of N + 1 queries but this doesn’t always fix the issue; in fact, it can even create more queries under some circumstances. This post shows a few examples of when that happens and how to deal with it.

Continue Reading