MySQL Forums
Forum List  »  Performance

Re: Unusually high cpu usage
Posted by: Rick James
Date: January 13, 2015 04:21PM

Not SHOW STATUS, that only shows your current connection's status. Instead, do
SHOW GLOBAL STATUS
Also, please do
SHOW GLOBAL VARIABLES

> whopping number of connections

Yes, the numbers seem high. However, let's see the above things before I make a call on it.

> even a mildy complex query as one looking at entries withing a certain distance to a given point

That query is likely to require a "table scan". Let's see the SELECT and the table (SHOW CREATE TABLE). How many rows in that table? When I see the details, I can probably show you how to speed it up. Further discussion and a more complex (but efficient) solution is given in
http://mysql.rjweb.org/doc.php/latlng

Options: ReplyQuote


Subject
Views
Written By
Posted
2963
January 11, 2015 02:55PM
1190
January 12, 2015 09:49PM
1046
January 13, 2015 09:32AM
1374
January 13, 2015 11:47AM
Re: Unusually high cpu usage
1062
January 13, 2015 04:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.