# Eager Loading with custom :finder\_sql

**URL:** <https://www.ruby-forum.com/t/eager-loading-with-custom-finder-sql/89650>\
**Category:** Rails\
**Created:** [March 21, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/eager-loading-with-custom-finder-sql/89650 "2007-03-21T22:00:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertjames](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Post date:** [March 21, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/eager-loading-with-custom-finder-sql/89650/1 "2007-03-21T22:00:40Z")

</div>

Is there any way to do eager loading when using custom :finder\_sql ?

---

<div class="post-metadata">

**Author:** ![robertjames](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Post date:** [March 22, 2007, 1:42pm UTC](https://www.ruby-forum.com/t/eager-loading-with-custom-finder-sql/89650/2 "2007-03-22T13:42:48Z")

</div>

S. Robert J. wrote:

> Is there any way to do eager loading when using custom :finder\_sql ?

Yes, put this file in lib: [http://mrj.bpa.nu/eager\_custom\_sql.rb](http://mrj.bpa.nu/eager_custom_sql.rb)

–  
We develop, watch us RoR, in numbers too big to ignore.
