[pylucene-dev] Need to build a high-load searcher
Ofer Nave
ofer at smarter.com
Fri Mar 23 15:44:24 PST 2007
> -----Original Message-----
> From: pylucene-dev-bounces at osafoundation.org
> [mailto:pylucene-dev-bounces at osafoundation.org] 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
More information about the pylucene-dev
mailing list