Re: indexes longer on int than char(40)??
Yes. The pack_keys table option answers your question.
candidateID is not forced unique. Several same values are represented by a single byte in the key file with packed keys. Different values are coded by a byte for the number of key bytes that are the same (from the beginning of the value), a length byte for the rest of the value and the rest of the value. Since the values in the index are sorted, often only the last byte changes. So the packing can be quite efficient.
Subject
Views
Written By
Posted
2916
November 17, 2005 01:44PM
Re: indexes longer on int than char(40)??
1947
November 18, 2005 06:00AM
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.