Kellogg Associates : Eager Finder SQL /2006/11/05/eager-finder-sql?format=rss en-us 40 Comment on Eager Finder SQL by Gregg Kellogg <p>Updated Rdoc from new release.</p><hr /><p><small>Original article writen by Gregg Kellogg and published on <a href='http://www.kellogg-assoc.com'>Kellogg Associates</a> | <a href='http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-2'>direct link to this article</a> | If you are reading this article elsewhere than <a href='http://www.kellogg-assoc.com'>Kellogg Associates</a>, it has been illegally reproduced and without proper authorization.</small></p> Wed, 14 Mar 2007 17:41:42 -0500 urn:uuid:0c6f689b-2358-44b7-a4f9-7f2bf8b3c49c http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-2 Comment on Eager Finder SQL by dob <p>This plugin looks awesome. This is the one feature of Hibernate that I&#8217;ve found lacking in ActiveRecord. +1 from me for inclusion in the base, for what it&#8217;s worth.</p> Tue, 17 Apr 2007 17:03:05 -0500 urn:uuid:f6a48c28-c93d-46f6-b893-c9f52dba67cb http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-4 Comment on Eager Finder SQL by infrid <p>Bloody marvelous! Just got my first finder_sql, with include going &#8211; and I&#8217;m giddy inside!</p> <p>Thanks so much, saved me hours and hours, I swear!</p> Thu, 14 Jun 2007 10:33:21 -0500 urn:uuid:9b052a04-08f7-4339-9d15-8d90fd96787f http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-6 Comment on Eager Finder SQL by Romaluca <p>how can i use limit for paginate the result?</p> Mon, 10 Dec 2007 07:01:20 -0600 urn:uuid:02139fd5-8c43-4adc-aff2-7902947b69e8 http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-7 Comment on Eager Finder SQL by Gregg Kellogg <p>(Summary of email communications with Romaluca)</p> <p>Instead of adding :limit and :offset options to the find call, add them into the embedded <span class="caps">SQL</span> as follows:</p> <p><span class="caps">SELECT</span> a.<strong>, b.</strong> <span class="caps">FROM</span> (SELECT * <span class="caps">FROM</span> aa <span class="caps">LIMIT</span> #{params[:offset]}, #{params[:length]}) a <span class="caps">JOIN</span> bb ON bb.a_id = a.id ORDER &#8230;</p> <p>In this case, we&#8217;re putting the limits on an inner select, which allows us to have an unlimited number of associations off a limited and offset set of base objects (aa in this case).</p> <p>Gregg</p><hr /><p><small>Original article writen by Gregg Kellogg and published on <a href='http://www.kellogg-assoc.com'>Kellogg Associates</a> | <a href='http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-8'>direct link to this article</a> | If you are reading this article elsewhere than <a href='http://www.kellogg-assoc.com'>Kellogg Associates</a>, it has been illegally reproduced and without proper authorization.</small></p> Sat, 15 Dec 2007 22:58:16 -0600 urn:uuid:4705621c-8966-4cb9-a307-fc3965a7d901 http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-8 Comment on Eager Finder SQL by romaluca <p>I have update rails to 2.2 version but your plugin not works. I receive an array with all records of principal table joined with all elements of table in include. thanks</p> Sat, 22 Nov 2008 15:39:22 -0600 urn:uuid:2b2a29c5-8757-4773-9dfa-38657e2c9948 http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-9 Comment on Eager Finder SQL by Gregg Kellogg <p>I&#8217;ll look into it shortly. I believe there was some fair refactoring given to this part of AR, so I&#8217;ll need to determine how extensive the changes needed to the plugin are.</p><hr /><p><small>Original article writen by Gregg Kellogg and published on <a href='http://www.kellogg-assoc.com'>Kellogg Associates</a> | <a href='http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-10'>direct link to this article</a> | If you are reading this article elsewhere than <a href='http://www.kellogg-assoc.com'>Kellogg Associates</a>, it has been illegally reproduced and without proper authorization.</small></p> Sun, 23 Nov 2008 22:32:30 -0600 urn:uuid:3860f77a-26b3-401e-ab50-ac724a21f094 http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-10 Comment on Eager Finder SQL by Gregg Kellogg <p>The plugin has been updated and works with Rails 2.2.</p><hr /><p><small>Original article writen by Gregg Kellogg and published on <a href='http://www.kellogg-assoc.com'>Kellogg Associates</a> | <a href='http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-11'>direct link to this article</a> | If you are reading this article elsewhere than <a href='http://www.kellogg-assoc.com'>Kellogg Associates</a>, it has been illegally reproduced and without proper authorization.</small></p> Wed, 14 Jan 2009 18:42:59 -0600 urn:uuid:198f6cde-2427-4491-a018-680ae74c2c14 http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-11 Comment on Eager Finder SQL by Rapid Search <p>thanks a lot! I was looking for this so long. have been using 2.2 version and never had problems with that</p> Wed, 07 Oct 2009 02:08:56 -0500 urn:uuid:d6e1804b-a0f4-4c7e-98ce-1449da2f7532 http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-21 Comment on Eager Finder SQL by nik <p>Thank you for this plugin. Works great with 2.3.5.</p> Tue, 02 Feb 2010 10:04:55 -0600 urn:uuid:3d71e97e-7703-4985-8531-85c467521823 http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-33 Comment on Eager Finder SQL by Gregg Kellogg <p>This has been a useful plugin, but I don&#8217;t expect it to go forward to Rails 3.0, as the changes to ActiveRecord are too numerous. Perhaps a variant that&#8217;s more suited to the 3.0 internals will emerge, but for me, at least, not until I really have a need to write custom <span class="caps">SQL</span> such as this again.</p> Sat, 06 Feb 2010 11:32:48 -0600 urn:uuid:ca8e44c8-132f-466a-b059-212f5dda5167 http://www.kellogg-assoc.com/2006/11/05/eager-finder-sql#comment-34