Home » RDBMS Server » Server Administration » Sequences and Performance
Sequences and Performance [message #58348] Mon, 18 August 2003 01:30 Go to next message
Warrick Jackson
Messages: 1
Registered: August 2003
Junior Member
I am attempting to manage the implementation of an application and have found that the developer has created a sequence for every table as a means of obtaining a unique primary key.

Does anyone have an opinion on this in terms of performance, functionality etc?
Re: Sequences and Performance [message #58353 is a reply to message #58348] Mon, 18 August 2003 06:12 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
it is the standard method.
as long as the dba would maintain the sequences, it would of no trouble.
and i have seen no issues with sequences.
Re: Sequences and Performance [message #58368 is a reply to message #58353] Tue, 19 August 2003 12:26 Go to previous message
pwl
Messages: 22
Registered: May 2000
Junior Member
If you use sequences to generate the primary key,
you can get the situation of duplication:-
Remember that the database is only a model of the
real world. It is very rare that you cannot find a
unique key (made up perhaps of many columns) that
identifies the item you are storing data about.
But with artificial keys (ie sequences) it can be
possible for the same 'real world' item to appear on
your database more than once, identified by
completely unique keys.
I feel that this is duplication and wrong.

Also, since Oracle keeps its keys in a BTree, you
will get skewed primary key indexes, and will may
find that some access is slow.

just my 2c worth
pwl
Previous Topic: import table & users objects
Next Topic: How do declare an Array in PL/SQL
Goto Forum:
  


Current Time: Fri Sep 20 06:49:36 CDT 2024