[ZODB-Dev] Connection simplification

Jim Fulton jim at zope.com
Mon Oct 25 15:22:02 EDT 2004


Tim Peters wrote:
> There are two Wiki pages proposing to simplify Connection management:
> 
>     http://zope.org/Wikis/ZODB/SimplifyConnectionManagement
> 
>     http://zope.org/Wikis/ZODB/NotesOnPossibleNewZODBConnectionPool
> 
> Since there are a ton of details not mentioned in either, and the Wiki pages
> have gotten no feedback, I'm going to ask here.
> 
> The only thing I'm going to bring up in this msg is a number of optional
> arguments to DB.open():  temporary, force, and waitflag.  They're not
> documented, not tested, *AFAICT* they're not used, and all *appear* to be
> ways to hack around the current hard limit on the # of connections per DB.
> Anyone want to champion one of them?  For example, does anyone use one of
> them?  I've said "AFAICT they're not used" about other things, and been
> surprised.
> 
> Else I'll change DB.open() to raise a deprecation warning if one is used
> (and ignore its value), and get rid of them in a later release.  If you do
> use one of these, please tell me what you think it accomplishes too.

I think we can get rid of them.  If not, we'll find out in an alpha or beta
release.


> While we're at it, while it's not really part of simplifying connection
> management, does anyone use DB.open()'s optional transaction= argument?
> That's another that appears undocumented, untested, and unused.

I think we can get rid of this too.

I suggest you assume this for now.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the ZODB-Dev mailing list