Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Difference: Concatenated PK - artificial PK
Hi Helmut,
I think that perhaps you have answered your own question really.
I have always found that PK's made up of just a Sequence are much more usable than concatenated keys. One can then create a Unique Key if required to control the Table Content.
-----Original Message-----
From: Helmut Daiminger [mailto:hdaiminger_at_vivonet.com]
Sent: 16 January 2001 18:43
To: Multiple recipients of list ORACLE-L
Subject: 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,
Helmut
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Helmut Daiminger
INET: hdaiminger_at_vivonet.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jan 17 2001 - 05:48:21 CST