Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 07 Apr 2006 @ 20:13:44 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Identity Column & UPI
 
From:   Kambhoji, Naveen Ram Prasanna

Experts,

Is it a good practice to define and Id Column GENERATED ALWAYS .. NO CYCLE and UPI(ID Column) on a table ? Will there be any performance issues for Id with UPI vs Id with NUPI for huge volume of data ?

I believe there is performance impact but I want to listen from you too.

Eg:

     CREATE SET TABLE REFERRER_PAGE_DIM ,NO FALLBACK ,
          NO BEFORE JOURNAL,
          NO AFTER JOURNAL,
          CHECKSUM = DEFAULT
          (
           REFERRER_ID INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY
                (START WITH 1
                 INCREMENT BY 1
                 MINVALUE -2147483647
                 MAXVALUE 2147483647
                 NO CYCLE),
           REF_DOMAIN VARCHAR(65) CHARACTER SET LATIN NOT CASESPECIFIC,
           FULL_REF_PAGE_NAME VARCHAR(90) CHARACTER SET LATIN NOT CASESPECIFIC,
           REF_URL VARCHAR(3000) CHARACTER SET LATIN NOT CASESPECIFIC)
     UNIQUE PRIMARY INDEX ( REFERRER_ID );

Thanks!

Naveen.



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016