# ActiveRecord :select with :include gem

**URL:** <https://discuss.rubyonrails.org/t/activerecord-select-with-include-gem/13260>\
**Category:** rubyonrails-talk\
**Tags:** announcement\
**Created:** [May 21, 2007, 9:55pm UTC](https://discuss.rubyonrails.org/t/activerecord-select-with-include-gem/13260 "2007-05-21T21:55:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paolo\_Negri](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Paolo\_Negri](https://discuss.rubyonrails.org/u/Paolo_Negri)\
**Post date:** [May 21, 2007, 9:55pm UTC](https://discuss.rubyonrails.org/t/activerecord-select-with-include-gem/13260/1 "2007-05-21T21:55:02Z")

</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:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [November 7, 2008, 10:41am UTC](https://discuss.rubyonrails.org/t/activerecord-select-with-include-gem/13260/2 "2008-11-07T10:41:36Z")

</div>

Paolo Negri 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?
