MySQL Forums
Forum List  »  Performance

Re: MySQL Performance or Just me? :(
Posted by: Tobin Harris
Date: July 28, 2005 01:08AM

You should paste your query here for us to see.

Have you run an EXPLAIN on the query to see if it's using an index? For example:

EXPLAIN select * from mytable where col = 'hello'

You can find details of how to interpret the EXPLAIN results in the MySql manual. In general, you should check that:

"type" is not saying "ALL" - this means all rows are being scanned
"possible_keys" - something should be shown here, indicating that at least one index can support your select statement
"key" - something should be here indicating the one index that was actually used.

HTH

Tobin

Options: ReplyQuote


Subject
Views
Written By
Posted
2590
July 27, 2005 11:53PM
Re: MySQL Performance or Just me? :(
1729
July 28, 2005 01:08AM
1845
July 28, 2005 08:13AM


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.