Rails bullet gem is here to solve the N+1 query problem. Let’s create this problem first, and solve it thanks to the Rails bullet gem.