Amanda .. wrote:> Nevermind, sped it up by limiting the Occurrence.find :all to find only
> occurrences dated to start on the current date and after it
Even though you''ve solved this problem, I suggest taking a look at your
log to see what (and how many) SQL queries are being executed. I suspect
you have at least one n+1 issue. There are a few ways to solve this --
the easiest is probably to use the :include option.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---