On Tue, Mar 13, 2007 at 05:20:51PM +0100, jeroen janssen wrote:
> Hi,
> 
> I'm using acts_as_ferret in with a mongrel and I' m getting locking  
> errors that after a while result in a corrupt database.

what version of ferret do you use? the latest ferret versions (0.11.x)
should show a much better behaviour with shared index access.

> I know about the problem with different processes writing to the  
> index but I haven't been able to get the DRB server working properly  
> yet. I read on this list that another solution is to set :auto_flush  
> to true but I'm not sure how to do this. As I understand it I have to  
> do this for the Index class and not for the model that  
> acts_as_ferret, right? How exactly do I do this? Do I just have to  
> make a new Index model?

acts_as_ferret already uses auto_flush => true in normal use (but not in
rebuild_index, because it would be really dumb to flush the index after
every record while batch indexing all records).

cheers,
Jens


-- 
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to