Re: To index or not index .... Help needed
I just read your last line so my answer made no sense.
Next try:
Why are you using: int(11) for type and year
Can't you use just INT (Range from -2147483648 - 2147483647 ) or SMALLINT (-32768 - 32767 ) for your fields especially the index fields.
Thats only 4 or 2 Bytes per field and not 11.
The index is stored in Blocks.
And the smaller the Index is, the less blocks have to be read from the HD.
Same with the whole record.
for Query 1 I just would try
KEY(type,year)
and no other INDEX
Hubble
Subject
Views
Written By
Posted
2285
October 25, 2005 07:36AM
1381
October 26, 2005 02:26AM
Re: To index or not index .... Help needed
1418
October 26, 2005 04:46AM
1363
October 26, 2005 08:45AM
1474
October 26, 2005 02:14PM
1795
October 26, 2005 02:48PM
1537
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.