# \[ANN\] ActiveRecord :select with :include gem

**URL:** <https://www.ruby-forum.com/t/ann-activerecord-select-with-include-gem/104739>\
**Category:** Rails\
**Created:** [May 21, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/ann-activerecord-select-with-include-gem/104739 "2007-05-21T23:56:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paolo\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@Paolo\_N](https://www.ruby-forum.com/u/Paolo_N)\
**Post date:** [May 21, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/ann-activerecord-select-with-include-gem/104739/1 "2007-05-21T23:56:17Z")

</div>

I’m writing to announce the first release of select\_with\_include gem.

This gem allows the use of the :select option together with  
the :include in the #find ActiveRecord method.

In the current ActiveRecord version if a #find has the :include option  
specified the :select will be ignored returning always all the fields  
of every single table; select\_with\_include modifies this behavior  
providing a limited support of the :select option.  
Depending by the number of the columns in your tables and the depth of  
your associations select\_with\_include can really improve the  
performance in terms of speed and memory usage of ActiveRecord

The gem can be installed with the usual

gem install select\_with\_include

more details are provided at

[http://assertbuggy.blogspot.com/2007/05/activerecord-select-with-include.html](http://assertbuggy.blogspot.com/2007/05/activerecord-select-with-include.html)

---

<div class="post-metadata">

**Author:** ![Paolo\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@Paolo\_N](https://www.ruby-forum.com/u/Paolo_N)\
**Post date:** [November 7, 2008, 11:41am UTC](https://www.ruby-forum.com/t/ann-activerecord-select-with-include-gem/104739/2 "2008-11-07T11:41:36Z")

</div>

Paolo N. wrote:

> I’m writing to announce the first release of select\_with\_include gem.
> 
> This gem allows the use of the :select option together with  
> the :include in the #find ActiveRecord method.
> 
> In the current ActiveRecord version if a #find has the :include option  
> specified the :select will be ignored returning always all the fields  
> of every single table; select\_with\_include modifies this behavior  
> providing a limited support of the :select option.  
> Depending by the number of the columns in your tables and the depth of  
> your associations select\_with\_include can really improve the  
> performance in terms of speed and memory usage of ActiveRecord
> 
> The gem can be installed with the usual
> 
> gem install select\_with\_include
> 
> more details are provided at
> 
> [assert\_buggy: ActiveRecord :select with :include](http://assertbuggy.blogspot.com/2007/05/activerecord-select-with-include.html)

Did you stop developing the gem? Is it compatible with Rails 2.x?

Anyone suing it? Are there real benefits?
