> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Pete
> Sent: Friday, March 23, 2007 4:38 PM
> 
> On Friday March 23 2007 4:11 pm, Ofer Nave wrote:
> > Does that mean I either have to:
> > A) not use queryparser
> > B) not use threads
> 
> No, just don't share QueryParsers among threads.
> 
> threading.local may  be helpful here.

Good idea - didn't know about threading.local.

Ok, I've compiled three possible solutions now:
1) daemonize before importing paste, pylucene
2) use daemontools to daemonize the script
3) use threading.local to localize the queryparser object to a thread

I intend to try all three over the weekend.  I'll post the results to the
list on Monday.

Thanks everyone!

-ofer

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to