Re: To index or not index .... Help needed
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.
Subject
Views
Written By
Posted
2286
October 25, 2005 07:36AM
1383
October 26, 2005 02:26AM
1420
October 26, 2005 04:46AM
Re: To index or not index .... Help needed
1366
October 26, 2005 08:45AM
1474
October 26, 2005 02:14PM
1797
October 26, 2005 02:48PM
1539
October 27, 2005 03:47AM
1501
October 31, 2005 07:07AM
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.