4 ms·
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 m
by colinbartlett 2y ago
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 https://github.com/flyerhzm/bullet
- pjm331 2y agoAs of rails 6.1 you can use active records built in strict_loading to solve this problem as well