Reg: Indexing

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
siva7143
Participant
Posts: 35
Joined: Wed Aug 09, 2006 12:20 am

Reg: Indexing

Post by siva7143 »

Which index gets automatically created with primary key?

a) B-tree Index
b) Bitmap Index
c) Funcation Based Index
d) Index never create automatically
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The answer is different with different database products, and you left out the possibility of "none". Most usual, I guess, would be a b-tree index. But there are certainly other possibilities. And in some cases it is possible to change that decision subsequently. For example in Red Brick if a STAR index includes all key columns, then the B-tree index on the primary key can never be used and so would be able to be dropped.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply