Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Behavior of VARCHAR and COMPRESSed columns in SPOOL - forum topic by hemanth_td

$
0
0

Hello,
Could someone please answer:
1. REGARDING VARCHAR:
I have a table with one of the columns defined as VARCHAR(255) even though the char length would never exceed 15 characters.
Is there any performance impact in defining a column as VARCHAR(255) against defining it as VARCHAR(15).
I got to know from some one that --> When we query a table defined with VARCHAR columns, VARCHAR fields are expanded to their full limit in SPOOL.
Greater the spool file size, more the number of I/O hits --> So there is a significant performance degradation by defining the VARCHAR columns with "unnecessary" greater lengths.
Is my understanding correct? 
2. REGARDING COMPRESS
Will the column COMPRESSions be lost when a table (defined with some multi value column compressions) is read into spool?
 
Thanks in advance!
 

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>