Re: Myltiple surrogate keys in one table!
From: Wolfgang Keller <wolfgangwkeller_at_gmx.de>
Date: Wed, 11 Jul 2001 20:58:36 GMT
Message-ID: <3B4CC05B.6BEE8DB9_at_gmx.de>
mailto:wk_at_objectarchitects.de
http://www.objectarchitects.de/ObjectArchitects/orpatterns/ Received on Wed Jul 11 2001 - 22:58:36 CEST
Date: Wed, 11 Jul 2001 20:58:36 GMT
Message-ID: <3B4CC05B.6BEE8DB9_at_gmx.de>
Mikito,
I think one primary key should do .. (but that's just a gut feeling)
I can then imagine situations where you have a machine generated primary key (an
object id)
and then a human readable key - like a domain primary key. That would make two with
a few
special properties like the domain key can appear again for another object - the oid
will
get dumped with the death of it's object and never be used again
Aside from that one thing that might help you reasoning about your problem
Any additional key (be it a unique one or a dup key) will slow down inserts and
updates
as the btrees with index structures need also to be written to a physical disk -
rsulting
in slower overall performance
Just my two cents
Wolfgang
mailto:wk_at_objectarchitects.de
http://www.objectarchitects.de/ObjectArchitects/orpatterns/ Received on Wed Jul 11 2001 - 22:58:36 CEST