If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Row Compression and NULL Values

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-06-09, 02:04
rajinbits rajinbits is offline
Registered User
 
Join Date: Nov 2007
Posts: 26
Row Compression and NULL Values

Hello,

How does the ROW compression (Db2 LUW Ver 9 and above ) treats the NULL Values in columns? If there are 10-12 column with NULL values, will row compression consider this for compression?
We can use value compression, but I guess we cannot use both value and row compression together?

Thanks,
Rajesh
Reply With Quote
  #2 (permalink)  
Old 04-07-09, 08:37
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
They can be used together.

Andy
Reply With Quote
  #3 (permalink)  
Old 04-07-09, 10:47
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
My understanding was that only nonnull fields are stored in a record on storage. After a few mb of these records(in 9.5) are inserted, in a table set for compression, a compression dictionary is built and subsequent records use tokens from the dictionary(if applicable). So null values do not enter the picture.
__________________
mota
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On