P. 1
Getting Started With DB2 Express v9.7 p4

Getting Started With DB2 Express v9.7 p4

|Views: 8|Likes:
Published by ndbelman

More info:

Published by: ndbelman on Apr 20, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/05/2014

pdf

text

original

DB2 supports several types of compression:

NULL and Default Value Compression.

This type of compression applies to columns whose values are normally NULL or
the system default values such as 0, where no disk storage is consumed

Multidimensional Clustering

Multidimensional clustering (MDC) tables where the physical data pages are
clustered in multiple dimensions. They use block indexes which in a sense is a way
to compress indexes because they point to a block of records rather than to a single
record.

Database Backup Compression

This applies to backup images. Indexes and LOB tablespaces are compressed.

Data Row Compression

Row compression works by replacing repeating strings within a row of data with a
much smaller symbol. The mapping of this smaller symbol and the string is kept in a
dictionary. Row compression can drastically improve performance on I/O bound
workloads given that more rows can be brought back and forth from disk to memory
(and viceversa) because the rows are smaller. You can also benefit from storage
savings which normally account for one of the largest expenses in the IT budget of
companies. For CPU-bound workloads there can be some extra overhead as
compressed rows need to be uncompressed before processing. Note as well the
the log data for from compressed records is also in compressed format.

When accessing XML and LOB columns generally DB2 will not use the bufferpool
(memory), but perform direct I/Os to the disk. This is done because XML and LOBs are
normally large in size; therefore bringing them to memory would cause pages that are
needed to be moved from memory. With DB2 9.5 however, XML inlining for small XML
documents (less than 32K) is allowed. This means that small XML documents can be
stored with the base table rows, and not in a separate internal storage object known as
XDA. The advantages of this approach are two-fold: First, XML documents can now be
access through the bufferpool, and second, XML documents could also benefit from data
row compression.

New with DB2 9.7 are further enhancements to compression:

XDA internal objects (where XML is stored) can now also be compressed.
Indexes and temporal tables (system and user) can be compressed
LOBs can be inlined in a similar way to XML inlining.

38 Getting Started with DB2 Express-C

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->