Hi! On Thu, Mar 13, 2008 at 05:01:26AM +0100, Sam Giffney wrote: > Followed this thread and have a has_many_through association indexing > fine. The only problem is the N+1 sql queries incurred with an index > rebuild, full or partial. > > Is there any way to enable eager loading on batch index updates?
Yes. Acts_as_ferret defines a class method named records_for_rebuild on your model, which you may override to use a customized find call. See lib/class_methods.rb for the original implementation. Cheers, Jens -- Jens Krämer http://www.jkraemer.net/ - Blog http://www.omdb.org/ - The new free film database _______________________________________________ Ferret-talk mailing list Ferret-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/ferret-talk