Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I install the Bullet gem in every Rails project because it not only detects these N+1 queries but tells you how to fix them, helping to ensure they never even make it to production.

https://github.com/flyerhzm/bullet



As of rails 6.1 you can use active records built in strict_loading to solve this problem as well




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: