Hello,
In an Oracle9i database running on Sun Solaris 8 I am having a tuff time determining the best field for a Primary Key on a very large table. At the moment a "natural key" is being used where it consists of the fields: date_time, latitude and longitude.
I have always thought a PrimaryKey should be bound to a meaningless ID field - like off a sequence etc.
1. In your view what are the Pros and Cons of using this natural key as opposed to a sequence or meaningless field?
2. Can you recomemend any best practices on creation of Primary Key fields with ideal performance as the goal?
Thanks for your advice,
Michael42
In an Oracle9i database running on Sun Solaris 8 I am having a tuff time determining the best field for a Primary Key on a very large table. At the moment a "natural key" is being used where it consists of the fields: date_time, latitude and longitude.
I have always thought a PrimaryKey should be bound to a meaningless ID field - like off a sequence etc.
1. In your view what are the Pros and Cons of using this natural key as opposed to a sequence or meaningless field?
2. Can you recomemend any best practices on creation of Primary Key fields with ideal performance as the goal?
Thanks for your advice,
Michael42