On 29 Apr 2008, at 20:37, Trevor Squires wrote:
> > Fred, > > I thought you might be interested in this: > > http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/64 > Funny, I was thinking about has_one just this afternoon. It's a toughie though - while fiddling with some of the internals can get you the right comment, you're still loading all comments. Not sure off the top of my head how you get around that (what does the old :include do ?) Fred > Regards, > Trevor > > On 4/29/08, Frederick Cheung <[EMAIL PROTECTED]> wrote: >> >> >> On 29 Apr 2008, at 18:45, bhus wrote: >> >>> >>> I'm sorry, but I'm not sure what you mean by 'new' vs 'old' eager >>> loading. The eager loading I mean took place when the :include >>> option >>> was given on a find. I looked at the source and it did not seem to >>> apply ordering in this case. >> >> Edge rails has a new eager loading scheme (have a look in >> association_preload.rb). :include still falls back to the old >> implementation in some cases (there's a quick summary at >> http://www.spacevatican.org/2008/4/29/include-and-conditions >> ) >> >> Fred >> >>> >>> >>> Is there another way of doing eager loading? I would gladly change >>> my >>> code if there is a better way. >>> >>> As for my solution, I will have to put it through it's paces for >>> sure, >>> but I believe my principals are sound. I just wanted to know if this >>> would be of any value to a broader audience. >>> >>> /Brad. >>> >>>> >> >> >>> >> > > > -- > -- > Trevor Squires > http://somethinglearned.com > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
