Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 20 May 2005 @ 19:50:39 GMT


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


Subj:   Re: How to handle partition maintenance
 
From:   Diehl, Robert

Kevin,

We do it the easy way. All of our new partitions are daily We add partitions twice a month each time adds 15 days. This technique can be done at any interval and for partitions of weekly and monthly. For dropping partitions, it is part of our monthly processes to remove the oldest month of data. Right now dropping the partitions is manual. We have plans to change it dynamically created ddl from table entries.

We have one situation where the table has partitions of different sizes. Right now moving data from daily to monthly and yearly partitions is done manually. When we have time this will be replaced with dynamically created ddl from table entries.

Also don't forget if you drop a partition but have NO RANGE the data will not be dropped, but moved to the NO RANGE partition. IN order for you to remove the data you also have to remove NO RANGE

     alter table dbname.tblname
     modify primary index (session_id)
     drop range between DATE '2004-08-01' AND DATE '2004-08-31'  EACH
     INTERVAL '1' DAY
     ,  NO RANGE OR UNKNOWN

Thanks,

Bob Diehl



     
  <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