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

Tables with MLPPI requires much more space than the same one with PPI - why? - response (1) by veehell

$
0
0

When using PPI/MLPPI, rows get bigger by 2 or 8 bytes (this depends on total count of created partitions , subpartitions are internally just partitions) ; 2Bytes when <= 65535 ; 8Bytes when >65535.
So on huge tables this might be disadvantage in matter of occupied permspace.
To calculate it, just use this formula (taken from manual)

(p1 - 1) * dd1 + (p2 - 1) * dd2 + ... + (pn-1 - 1) * ddn-1 + pn

 

where n is the number of partitioning expressions

pi is the value of the partitioning expression for level i

di is the number of partitions for level i

ddi is the product of di+1 through dn

dd = d1* d2 * ... * dn <= 65535

dd is the total number of combined partitions

 

Cheers

-vh-


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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