Dennis Lee Bieber <wlfr...@ix.netcom.com> writes: > On Tue, 06 May 2014 13:03:08 +0200, dieter <die...@handshake.de> declaimed > the following: > >> >>The database (we have called it "db") is global to all threads. >>Each thread must open (and maybe close) its own connection to the >>global database. You must never share the same connection or >>objects loaded via the connection between threads - very weird >>(and apparently non-deterministic) errors can result. >> > Actually, one should study the documentation for the dbapi adapter > being used -- some may allow the connection (db = adapter.connect(...)) to > be shared by threads, but require each thread to create its own cursor (cur > = db.cursor())
We are speaking here about the ZODB (= "Zope Object DataBase"). This is not a relational database - and does not have cursors (just databases, transactions and connections). -- https://mail.python.org/mailman/listinfo/python-list