You could also use the bullet gem: https://github.com/riffraff/bullet which will tell you if you should or shouldn't be eager loading stuff.
On 26/05/2011, at 9:52 AM, Nathan de Vries wrote: > On 25/05/2011, at 6:22 PM, Samuel Richardson wrote: >> I removed the inclusion of medias when calling genres which has sped >> things up immensely, so whatever it was, was related to that. > > > Make sure you have the correct DB indexes set up for both joining & sorting, > and consider eager loading (via includes) any models that are causing > additional queries. > > > Cheers, > > Nathan > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
