I'm looking at some horrible numbers in a SLOW_QUERY_LOG (one example)
Count: 2563 Time=23.21s (59498s) Lock=0.00s (1s) Rows=21.4 (54857)
This is for a simple SELECT statement that runs for less than a second when I try to run it manually.
The database services a java/tomcat application that I know have some problems.
Is it possible for the calling application to cause these abnormal numbers in the database? For example by asking the database for some data and then taking it's sweet long time to accept it?