# "Complex" Eager Loads

**URL:** <https://www.ruby-forum.com/t/complex-eager-loads/141413>\
**Category:** Rails\
**Created:** [June 25, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/complex-eager-loads/141413 "2008-06-25T16:19:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjames](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sjames](https://www.ruby-forum.com/u/sjames)\
**Post date:** [June 25, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/complex-eager-loads/141413/1 "2008-06-25T16:19:00Z")

</div>

Hey gang.

Is it possible to extend the eager load SQL at all? What I’m hoping  
to do is eagerly load an associate that, in turn, joins in some data  
from another table.

Many thanks,

James

---

<div class="post-metadata">

**Author:** ![sjames](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sjames](https://www.ruby-forum.com/u/sjames)\
**Post date:** [June 25, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/complex-eager-loads/141413/2 "2008-06-25T16:42:27Z")

</div>

On 25 Jun 2008, at 15:18, James H. wrote:

> Hey gang.
> 
> Is it possible to extend the eager load SQL at all? What I’m hoping  
> to do is eagerly load an associate that, in turn, joins in some data  
> from another table.

There is a plugin  
([http://kellogg-assoc.com/articles/2006/11/05/eager-finder-sql](http://kellogg-assoc.com/articles/2006/11/05/eager-finder-sql)  
) that allows you to have the result set of a completely custom query  
stuck through the eager loading instantiation stuff (just in case you  
didn’t know, eager loading does allow you to nest associations).

Fred
