durusmail: quixote-users: Re: Reusing connections quixote 2
Re: Reusing connections quixote 2
2006-11-07
2006-11-07
2006-11-07
2006-11-07
2006-11-07
2006-11-07
2006-11-08
2007-02-01
2007-02-01
2007-02-01
2006-11-08
2006-11-08
2006-11-08
2006-11-08
2006-11-09
2006-11-08
Re: Reusing connections quixote 2
Arturo FM
2006-11-07
>If you really need cleanup then I guess you could use the "atexit"
>module.  Why do you think you need a cleanup method though?
MySQL throws a "MySQL has gone away" exception when a timeout is reached. I
asked myself if it is possible and efficient to use another technique for handle
database connections. For example, in each query, open a connection, execute
query and close connection. I wrote others web application using Java and
database's pools. BEA Weblogic Servers uses classes for handle database
connections pools but I don't want to use a pool in Python.
Any idea?

Regards,
Arturo








______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
reply