durusmail: quixote-users: Newbie question about threads
Newbie question about threads
2004-11-08
2004-11-08
2004-11-08
2004-11-08
2004-11-08
2004-11-09
2004-11-09
Byte-compyle Python/PTL files (was: Newbie question about threads)
2004-11-10
Newbie question about threads
Neil Schemenauer
2004-11-08
On Mon, Nov 08, 2004 at 12:43:54PM -0800, Mike Orr wrote:
> My understanding is that Quixote has neither threads nor an
> asynchronous model, so all other requests will freeze  while a
> search query is running.

If I understand your problem, async is not going to help.  You need
multiple threads or processes.

> doc/multi-threaded.html in Quixote-1.2 shows how to modify the
> Publisher so the "global" Request object is specific to the
> current thread.  But shouldn't you have to do something more too?

I expect so.  I'll leave this question for the thread experts.

> Does it matter which webserver adapter a threaded application
> uses?  I'm undecided between SCGI, FastCGI, and mod_python.  I'm
> currently using CGI for development.

It sounds like you might be using a Unix system.  I suggest trying a
multi-process SCGI server.  You can also configure FastCGI to use
multiple processes.  mod_python is multi-process by nature, AFAIK.

  Neil

reply