search for: build_new_index

Displaying 2 results from an estimated 2 matches for "build_new_index".

2007 Nov 07
2
Ferret-talk Digest, Vol 25, Issue 2
> From: Jens Kraemer <jk at jkraemer.net> > Subject: Re: [Ferret-talk] Performance before and after optimization > On Sat, Nov 03, 2007 at 08:49:17PM +0800, Alex Neth wrote: > [..] >> 2) Can I keep a second index so that it doesn''t get locked during >> optimization and then switch to the optimized index? Perhaps the >> index >> is not really
2007 Nov 10
1
Ferret-talk Digest, Vol 25, Issue 3
...:field_infos => ActsAsFerret::field_infos([self]), > :path => location) > index = Ferret::Index::Index.new(config) > index.logger = Logger.new("#{location}/index.log") > index > end > > > def self.build_new_index(location) > index = setup_new_index(location) > > max = self.maximum(:id) > start = self.minimum(:id) > > start.step(max, increment) do |n| > begin > record = self.find(n) > rescue ActiveRecord::RecordNotFound >...