> can I have some feedback from the list who is using the thread-local
> capability of DynamicMetaData, and/or are using "global_connect()" ?
> (another feature i didnt like but it was me bowing to early pressure
> from TG users).

Probably this will be no surprise, since I contributed most of the
original ProxyEngine. ;)

I use DynamicMetaData exactly as you described the main pylons/TG use
case: I define tables at the module level, using a DynamicMetaData
instance, and then call meta.connect(uri) at the start of each
request.  For me, this is the most sensible way to handle things in a
WSGI-friendly web app. Minimal overhead, maximal flexibility.
meta.connect(uri, threadlocal=True) or meta.connect_threadlocal(uri)
would be ok, but I think worse as an API since they put too much
responsibility on the caller and cause too much repetition.

JP


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to