Perfect.  I'll have a play with this later.  I quite enjoy trying to optimize 
things like this :)


On 30/09/2011, at 4:23 PM, FND wrote:

> Sorry, it seems the Google Groups web interface severely messed up the
> formatting - so let's try this once more:
> 
>> do you ned this in more than one place, or just for something that's
>> proving to be a bottleneck at one point in your app. It's probably
>> possible to "help" DM from the outside in, if you want to eager-load
>> an association as a one-off optimisation
> 
> I'd be happy with manual optimizations, i.e. some sort of explicit
> marker (similar to ActiveRecord's `includes`).
> 
> So far we couldn't find any such option - among the things we tried was
> "prefetching" items to take advantage of the identity map (starting in
> reverse; `Lvl3Assoc.all(:Lvl2Assoc => { :Lvl1Assoc => @item }`) , but
> that went nowhere...
> 
>> I'd need to know what the relationships are before I even begin trying
>> to write the code to do it
> 
> Would this reduced test case be sufficient:
> https://gist.github.com/1244491
> 
> I very much appreciate your help!
> 
> 
> -- F.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DataMapper" 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/datamapper?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en.

Reply via email to