Re: Primary Keys
David W. Fenton wrote:
It seems I was wrong then and you haven't had the epiphany yet.
Stop thinking in terms of PRIMARY KEY as being your primary key,
candidate key, natural key, etc because you can use NOT NULL UNIQUE for
those purposes. For Jet you must think in terms of PRIMARY KEY meaning
clustered index and nothing else, then choose whatever columns makes
sense in that context.
The important word there is 'seldom'. If 'optimization' is the *only*
thing that differentiates PRIMARY KEY from NOT NULL UNIQUE then why use
PK for any other purpose?
Jamie.
--
David W. Fenton wrote:
Dates are very seldom going
to be part of a natural key, at least not for very many types of
entities.
to be part of a natural key, at least not for very many types of
entities.
Stop thinking in terms of PRIMARY KEY as being your primary key,
candidate key, natural key, etc because you can use NOT NULL UNIQUE for
those purposes. For Jet you must think in terms of PRIMARY KEY meaning
clustered index and nothing else, then choose whatever columns makes
sense in that context.
I think your suggestion is bloody stupid, as it optimizes something
that very seldom needs further optimization in the first place.
that very seldom needs further optimization in the first place.
thing that differentiates PRIMARY KEY from NOT NULL UNIQUE then why use
PK for any other purpose?
Jamie.
--
Comment