# Acts\_as\_ferret: Slow ferret\_update with associated models

**URL:** <https://www.ruby-forum.com/t/acts-as-ferret-slow-ferret-update-with-associated-models/163235>\
**Category:** Ferret\
**Created:** [March 18, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-slow-ferret-update-with-associated-models/163235 "2009-03-18T14:24:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratchetcat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Post date:** [March 18, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-slow-ferret-update-with-associated-models/163235/1 "2009-03-18T14:24:42Z")

</div>

Hi,

I am using some custom fields for ferret indexing to include fields from  
associated models. When those child models are updated, I do  
ferret\_update  
on the parent model. Unfortunately, that takes very long, depending on  
the  
number of associated child models. That is because every child model is  
called to re-index the parent, instead of just the changed one.

What can I do to speed up re-indexing?  
I am using Rails 2.1.2, Ferret 0.11.6 and ActsAsFerret 0.4.2.  
Thanks for your advice!

Best  
Jon
