Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Difference: Concatenated PK - artificial PK
Hi!
I have a question concerning artifical keys and concatenated primary keys.
Usually it is recommended using concatenated primary keys and not introduce an artifical PKs (e.g. through a sequence). The problem with that is that we will have PKs made up of three or four columns and when nesting into deeper hierarchies PKs will get very long.
What is the performance impact of having a concatenated PK? I would have to do three joins instead of one...
Would it be a good idea to introduce an artificial key (e.g. sequence) and use the concatenated key as an alternate (unique) key and put an index on it?
This is 8.1.6 on Win2k.
Thanks, Received on Tue Jan 16 2001 - 12:42:38 CST
![]() |
![]() |