[Twisted-Python] Consensus on how to handle "MySQL server has gone away"

Itamar Turner-Trauring itamar at itamarst.org
Wed Oct 3 07:27:56 EDT 2012

On 10/03/2012 04:28 AM, Phil Mayers wrote:
> I think the behaviour it should be aiming for is clear: 
> 1. Test each connection with "good_sql" before beginning the user 
> interaction/query

The problem is that this adds latency; this can add up to quite a 
slowdown if your database server is on a remote server and you're doing 
lots of single queries (as opposed to runInteraction).

More information about the Twisted-Python mailing list