Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

how know the difference between compress table and general table ? - response (3) by TGooch44

$
0
0

This is current as of 13.10, I'm not sure whats available in 14.0.
It depends which type of compression you're talking about.  There are 3 main types of compression Multi-Value Compression(MVC), ALC(Algorithmic Compression) AND BLC(Block-Level Compression).  
For MVC, you can query the DBC.Columns view, which has a column called CompressValueList, you can get the tables by doing:
 

SELECT DatabaseNAme, TableName

FROM DBC.Columns 

Where CompressValueList is not null

 GROUP BY 1,2

 ;

That will return all tables that have at least one column compressed with MVC

 

 

For ALC, you can use the same view as above, but you'll need to filter it to a CompressValueList LIKE '%COMPRESS USING%'.

 

For BLC, the only way that I'm aware of to get which tables have been compressed is to do a SHOWBLOCKS in ferret.


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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