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

Phil Mayers p.mayers at imperial.ac.uk
Wed Oct 3 10:18:17 EDT 2012


On 03/10/12 12:27, Itamar Turner-Trauring wrote:
> 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).

Fair point.



More information about the Twisted-Python mailing list