Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 19 Aug 2010 @ 08:41:11 GMT


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


Subj:   Re: How to find out the skew for a query
 
From:   Chanderbabu_Veppala

Skew for a table means Uneven AMP Distribution of data in table.

Skew factor can be table level and CPU level.

Skew factor is major for the table. Less skew will increase the performance of the table.

To find out the Skew factor for the table :

     select databasename,tablename,
     cast((100 - (AVG(a.CurrentPerm)/MAX(a.CurrentPerm)*100)) as integer) AS SkewFactor
     From dbc.tablesize a where databasename='DatabaseName' and
     tablename ='TableName' group by 1,2 order by 1;

Regards

Chanderbabu Veppala



     
  <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: 15 Jun 2023