On 03.09.2007, at 16:27, Benjamin Krause wrote:

>>
>> Setting ActiveRecord::Base.allow_concurrency to true solved this
>> problem for me once, however I'm not sure why and it was not
>> ferret-related.
>
> ActiveRecord::Base.allow_concurrency = true
> ActiveRecord::Base.verification_timeout = 10

ActiveRecord just isn't reentrant. Period ;)

There are supposedly ways to make it work using allow_concurrency,  
reconnect and whatever. But...

>  .. but still - the sql connection is lost from time to time..

Exactly.

I rebuild my index in a separate process and directory. When it's  
done, I tell the index server via DRb that a new index is available  
and it'll switch to the new directory. Works like a charm.

Cheers,
Andy
_______________________________________________
Ferret-talk mailing list
Ferret-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to