Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: NUMBER versa CHAR as a primary key

Re: NUMBER versa CHAR as a primary key

From: Brian Peasland <peasland_at_edcmail.cr.usgs.gov>
Date: 2000/07/27
Message-ID: <39803660.B03EDE0D@edcmail.cr.usgs.gov>#1/1

Janusz,

I suppose that one could make a case that theoretically a NUMBER pk will perform better than a CHAR pk. This case will probably be made due to the fact that comparing a number against a number is quicker than comparing two character strings, character by character. But in reality, the difference is too small to notice. So in real life, you shouldn't notice any difference between these datatypes for your pk's.

HTH,
Brian

Janusz Gryczman wrote:
>
> Is it true, that using NUMBER Oracle type versa CHAR for a primary key
> improves performance ?
> If yes what is the ratio ? Is it really significant ?
> What about if primary key has a type VARCHAR ?
> Really appreciate answer to this question.
 

-- 
========================================
Brian Peasland
Raytheons Systems at
  USGS EROS Data Center
These opinions are my own and do not
necessarily reflect the opinions of my 
company!
========================================
Received on Thu Jul 27 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US