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
Mike Orr
2004-11-08
On Mon, Nov 08, 2004 at 03:55:20PM -0500, Neil Schemenauer wrote:
> 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.

If I understand right, Twisted's SQL libraries allow the query to run
while other requests are being handled.

> > 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.

It's running on Linux now, but it may have to switch to Windows in the
future if company policy changes.  So I'd rather have a portable solution
than a Unix-only one.

Thanks for your help.

--
-Mike Orr (aka. Sluggo), mso@oz.net  (iron@sense-sea-MegaSub-1-465.oz.net)
   http://sluggo.kicks-ass.org/                  Cxu vi parolas Esperante?

reply