How To Find, Fix, and Prevent, N+1 Queries on Rails

Flavio Wuensche
Doctolib
Published in
7 min readJan 10

A shortlist of actionable advice on how to get rid of N+1 Queries in a Rails application

This article is a part of the series: Guide to Rails Performance ⚡️

What's an N+1 query? 🤷‍♂️

An N+1 query is a type of performance issue that often occurs when using an object-relational mapper (ORM) such as Active…

Flavio Wuensche
Doctolib

Staff Engineer at Doctolib. Wanna be a climber. Regularly sharing short articles about React and Rails. twitter.com/fwuensche