On 9 Oct 2008, at 17:36, Xavier wrote:
> > > Hi there, > > > Now why isn't this asset's contact record already associated to the > existing contact instance? > > I've been using Rails for years and it's the very first time I notice > such a behavior. It has always occured to me that, when invoking > parent.association, all records in association had their parent > already set to an existing instance, without having to hit the > database. > It's always been like this (:include is a red herring here, even without eager loading in the picture, if you do x = parent.child #=> 1 query, loads child x.parent #=> 1 query, loads parent again) This is far from ideal but it's nothing new Fred > Any idea on this? > > Greets, > > Xavier > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [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-talk?hl=en -~----------~----~----~----~------~----~------~--~---

