I recently learned about the Rails "bullet" gem that addresses the N+1 problem and determines when your app should or should not use eager fetching. Apparently it checks at runtime on the occurrence of N+1 loads that are not needed or the need for eager fetching to speed things up in instances where lazy fetching is being used.
https://github.com/flyerhzm/bullet
Is there an equivalent plugin for Grails?