2 ms·
There's a Ruby gem called Bullet that identifies and warns developers about N+1 problems. You can also have it fail tests if detected. I don't know if the appr
by brightball 4y ago
There's a Ruby gem called Bullet that identifies and warns developers about N+1 problems. You can also have it fail tests if detected.
I don't know if the approach is possible with every ORM or if it's just leveraging some Ruby perks, but I can't think of a good reason why you wouldn't use the equivalent everywhere.
https://github.com/flyerhzm/bullet https://github.com/flyerhzm/bullet