Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 19 Dec 2002 @ 16:45:01 GMT


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


Subj:   Spool on Table Conversion
 
From:   Sudarsan, Thopay

We have requirement to change a column's type (say column CC )from decimal to char. We created an empty table with char data type for the column and the following qurey populates that table

Insert into New
select
AA,
,BB
,cast(cc as char(15))
from old;

The original table has 86M rows and 5GB in size. I am slightly surprised that it neededs 6G of spool space to do the job even though we are populating an empty table.

Comparing with - creating and populating the table without any change , it donot need any spool space. It runs much much faster that the previous one.

Any idea to avoid spool space utilization other than fastexport and fastload?


Thanks in advance

Sudarsan Thopay



     
  <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