[storm] Storm and MySQL in WSGI environment - MySQL server run away
Jamu Kakar
jkakar at kakar.ca
Thu Jan 27 12:00:29 UTC 2011
Hi Steve,
On Thu, Jan 27, 2011 at 1:01 AM, Steve Kieu <msh.computing at gmail.com> wrote:
> Is there any method that allow me to check the connection status from the
> Store object? I think of a way like do a store.execute("some lowest cost sql
> here") and catch the exception then if has then recreate the store object
> but it does look clean to me.
Nope, the only way to test the connection is to use it. You can run a
simple query like:
store.execute("SELECT * FROM $table WHERE 1=2")
Thanks,
J.
More information about the storm
mailing list