Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 05 Mar 2013 @ 13:39:03 GMT


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


Subj:   Performance of deleting records with date range in PPI
 
From:   Ng, Edgar

Hi Folks,

The customer is trying to delete various months / weeks / days of transaction data off a transaction table with PPI set up with transaction date, ?which method suits the best performance if we are deleting a segement of data (e.g. if we are maintaining history for 3 years, so every day / month, we will delete off the data that is older than 3 years)?

1. Drop range on PPI

2. Delete from where transaction_date < ?specified date range? (will performance increase if PPI are set up with transaction date?)

3. Create a temporary table, insert into temporary table with transaction_date >= specified date range, delete the table, rename the temporary table to target table name


Which one of the 3 will be a proper practice for fastest performance, and the drawl back?


Edgar Ng



     
  <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