Michael Bayer wrote:

On Apr 8, 2006, at 2:25 PM, Daniel Miller wrote:

It has been pointed out that SA depends on __del__ to clean up its resources. This is very bad. One reason for this is that the Python garbage collector cannot cleanup circularly referenced graphs of objects if __del__ is involved[3]. In an ORM, resource management must be totally explicit and customizable to allow applications to scale in varying environments. Application developers need to be able to control when and how resources are obtained and released. Finally, resource management is orthogonal to the real job of SA, which is to map database data to objects.

while you may not have noticed there is a critical ticket to add explicit reference counting to the connection pool and to build this functionality in by default, you are free to provide your own Pool class to the SQLEngine and connections can be managed in any way you like.

Sorry. I need to pay more attention to Trac.

<tucks tail />

~ Daniel


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to