문제

I've read that the Heap File Organization is usually used to structure a secondary index. This makes me suspect that usually, a secondary index is unordered, as opposed to the primary index, that is ordered by the primary key attribute. Is this true ?

도움이 되었습니까?

해결책

Depends on the index type. The default index type in most relational database is usually some form of btree (or other forms of search tree), which is ordered index, though they would be ordered by the indexed columns, not by the table's primary key. There are some types of secondary indexes like hash index which are unordered.

I'm not quite sure where you get the impression that "Heap File Organization is usually used to structure a secondary index". A heap file organisation the way it's described in that article isn't useful for indexing at all.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 softwareengineering.stackexchange
scroll top