[ZODB-Dev] MultiThread server
Dieter Maurer
dieter at handshake.de
Wed Oct 8 15:16:16 EDT 2003
Antonio Beamud Montero wrote at 2003-10-7 18:39 +0200:
> ...
> I also knows that I need to create a different connection for every
> thread... but Where I can find a well make example of an http server
> (python lib) with multithread and ZODB...?
You could look at Zope -- but it is complex...
That said, you can simply open a new connection in each thread and
use it. Do not forget to commit/abort the transaction at the end
of a request, then close the connection and open a new one for the
next request.
Dieter
More information about the ZODB-Dev
mailing list