On Fri, 26 Nov 2004, aurora wrote:

Let's say a call to IndexWriter.optimize() takes 1 miniute. I find
that all threads are blocked during that time. Is that due to GIL? Is
there any way to tweak PyLucene to not hold the GIL during lengthy IO?
This happens in Windows 2000 with Python 2.3.

I just added an overload to IndexWriter.optimize(boolean yield) that, if yield is True, will allow other threads to run while Lucene's IndexWriter.optimize() method is in progress.
For an example of usage, see samples/IndexFiles.py


Andi..


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

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

Reply via email to