[ZODB-Dev] Opening your own parallel transactions/database connections in Zope

Dieter Maurer dieter at handshake.de
Tue Feb 24 14:12:32 EST 2004


Christian Theune wrote at 2004-2-24 08:14 +0000:
> ...
>I don't know if I need the connection.sync() call -- it seems to work
>without and I don't actually know where it's for.

You use "sync" when you do not use an "asyncore" main loop
and you allowed your connection to hang around for some while.

> ...
>I have had some hangs when the thread works with a single database
>connection for each transaction, it seems to allocate too much or so. Is
>there a limit on the concurrent connections to the database?

Yes, the ZODB ("ZODB.DB") limits the number of concurrent
connections.

When you open a connection, you should close it again
when it is no longer needed.

-- 
Dieter



More information about the ZODB-Dev mailing list