Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 29 Apr 2003 @ 14:38:18 GMT


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


Subj:   Re: Collect statistics..
 
From:   Fred W Pluebell

I agree with some of the other comments - first make sure you really need updated statistics that often. Except for single-column indexes on fields like date, timestamp, sequence number you seldom need new stats after every update run.

If you have plenty of (spool) space, have you tried updating existing statistics via COLLECT STATS without specifying COLUMN or INDEX? Teradata can build multiple spool files in a single scan of the base table. If it's a new table, tell Teradata to COLLECT STATS on individual COLUMNs (and PI if desired) while it's empty; then load the table, then re-collect. Or run multiple COLLECT STATS jobs in parallel. In current releases, COLLECT STATS only takes a rowhash write lock for a very short time at the end.



     
  <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