Ferret can optimize its index, which will collapse the files in an index
directory. Sadly enough, acts_as_ferret does not call it unless you
choose to rebuild its entire index. This could solve your problem:
ContentItem.rebuild_index.
This might take a while...
Regards,
Ewout
>Hey all!
>
>We've been using Ferret to great success these past six months. But
>recently we'ved tried adding many new ContentItems (only thing being
>index by Ferret at the moment), and things came crashing to a halt.
>
>ferret gem: 0.10.9
>acts_as_ferret plugin (not sure which version)
>
>How we're using the plugin:
>
>class ContentItem < ActiveRecord::Base
> acts_as_ferret :fields => { 'title' => {},
> 'description' => {}
> }
> ...
>end
>
>In the directory (on production) 'index/production/content_item', there
>are now 45812 files. (this is on Fedora Core 5, btw)
>
>This leads me to believe this could be the culprit... and if not the
>culprit now, it will be soon.
>
>>> ContentItem.count
>=> 19603
>
>Any ideas?
>
>Any help would be mucho appreciated. Thanks!
>
>- Fez
>http://ummyeah.com/
>
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>Ferret-talk mailing list
>[email protected]
>http://rubyforge.org/mailman/listinfo/ferret-talk
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk