On Thu, Sep 27, 2007 at 03:12:51PM -0400, Erik Morton wrote:
> Using the Drb allows me to synchronize writes to the index in a multi  
> mongrel environment. I was under the impression that the remote index  
> would not block if two mongrels were searching the index. Is that the  
> case? This line in ferret_server.rb makes me think otherwise:
> 
>        # Calls are not queued atm, so this will block until the call  
> returned.

Don't worry, it's only bad wording :-) 

What this means is only that indexing is not done in an asynchronous
way. So your call to Model#save which triggers an index update won't
return until the server has finished adding that record to the index.

Other processes will get their own threads on the DRb side,
synchronization is done in Ferret's Index class which allows concurrent
searches.

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