logo       

acts_as_ferret: reindexing it too slow: msg#00093

lang.ruby.ferret.general

Subject: acts_as_ferret: reindexing it too slow

Hi,

Recently, I was trying to play around with AAF and found that reindexing
table is very slow. Then I started looking into Ferret performance and
tried myself and found that it's very fast. Then, I just used Ferret to
index my table and it was also very fast. All good.

Then why reindexing using AAF is slow. After sometime I found that in
the AAF, it uses (:key => :id) in acts_as_ferret method of
class_methods.rb. When I removed this condition, everything works fine.

===========================
Without the above changes: It took me 8 hours to index 1 million records
With changes I guess around 20 minutes. Big difference :-)
===========================

I wonder, is their any side effect of this changes.

Thanks,
SK

--
Posted via http://www.ruby-forum.com/.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise