> 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).
Yeah, running good_sql before every user query is bad. Probably an option to run "good_sql" on an idle connection every n secs for fast detection of connection loss would be handy .. _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python