Professional Documents
Culture Documents
New Options
for Compression
Reducing data volume puts the squeeze on system cost.
The Benefits
by Steve Long
Options Available
Tech2Tech_applied solution 2
How It Works
Most data compression techniques are
based on one of two models:
Dictionary-based. A list (a
dictionary) of commonly
occurring values in the data and
their corresponding codes is maintained. Because these values usually
comprise the highest percentage of
all values in a column, this type of
compression condenses them, thereby
optimizing disk space.
table
Analysis required
Ease of definition
Flexibility
No CPU usage
Performance impact
Breadth of applicability
n Block-Level Compression
This compression mechanism operates on all
types of data. It compresses all of the data in a
data block before its stored on a disk. It can be
applied to all tables in the system or on a table-bytable basis, but it cannot be applied to only select
columns in a table (such as ALC and MVC).
Block-level compression (BLC) can
generally achieve the highest compression
ratesup to five times, which is a reduction
of the data to as little as 20% of its original
size. It can also have a significant overall
savings in kilobytes transferred per I/O. But
it can have a more significant trade-off in
CPU utilization than the other compression
methods. BLC uses significant CPU on dataload operations and queries. To understand
the magnitude of the potential impact, expect
about 80 CPU seconds per gigabyte for
compressing data and about 10 CPU seconds
per gigabyte for uncompressing data. So if
your system is CPU-bound, use BLC only on
data that will not be accessed during critical
periods of the day, and make sure the session
accessing these compressed objects runs at a
low priority.
In the latest Teradata platforms, BLC makes
excellent use of the more powerful processors.
It also makes very effective use of any excess
n FERRET Tool
Use the file system utility FERRET to compress or uncompress existing data blocks
in an already loaded table. If you have an
existing uncompressed table that you want
System Growth