MySQL Forums
Forum List  »  Performance

Re: To index or not index .... Help needed
Posted by: Daniel Nichter
Date: October 26, 2005 08:45AM

He already tried this too: "Even if I define an index on type and year only I get the same performance decrease." -- Personally, I've not ever heard of an index being slower than a table scan on a large amount of rows. If this were my problem, on a quiet test server I'd run each query and look at the Handler_read% values (SHOW STATUS LIKE 'Handler_read%'; -- remember to FLUSH STATUS; in between queries). That might provide some insight into what's happening.

You have free key buffer space and RAM correct? If you're out of RAM and your server is swapping the key buffer, this might explain it.

Options: ReplyQuote


Subject
Views
Written By
Posted
2106
October 25, 2005 07:36AM
Re: To index or not index .... Help needed
1266
October 26, 2005 08:45AM


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.