Hi Dan,

thanks for sharing this.

There was a discussion about eager loading a while ago: 
https://gist.github.com/1244491

We took that code (provided by d11wtq), changed some details and ended up here:
https://gist.github.com/3162356

I guess hacking in the model's instance variables wasn't the best idea. But I 
really like the API (using the QueryPath and a method in 
DataMapper::Collection).

--

Till


Am 22.07.2012 um 19:49 schrieb Dan Kubb (dkubb):

Hi Everyone,

I just figured I'd share this with the list, it's a way of Eager Loading DM 
associations by specifying what associations to load:

  https://gist.github.com/3100034

I'll probably gemify it soon, but I wanted to get it out early in case people 
want to hack on it and test it out.

--

Dan

--
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/datamapper/-/O0xqTr-P0XIJ.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
To unsubscribe from this group, send email to 
[email protected]<mailto:[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