<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.mycado.fr &#187; compression</title>
	<atom:link href="http://blog.mycado.fr/tag/compression/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mycado.fr</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 28 Oct 2009 12:21:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DB2 Data compression</title>
		<link>http://blog.mycado.fr/2009/09/db2-data-compression/</link>
		<comments>http://blog.mycado.fr/2009/09/db2-data-compression/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 14:36:59 +0000</pubDate>
		<dc:creator>Stéphane Journot</dc:creator>
				<category><![CDATA[IBM DB2]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[DB2]]></category>

		<guid isPermaLink="false">http://blog.mycado.fr/?p=213</guid>
		<description><![CDATA[Disk storage is not cheaper, take place, make noise, so, for large warehouses (or huge volumes database), the cost of the storage become important. IBM DB2 have a solution, with the data compression named &#8220;Venom&#8221; technology, reducing storage requirements, improving I/O, and providing quicker data access from the disk.
DB2 uses a dictionary based algorithm for [...]]]></description>
			<content:encoded><![CDATA[<p>Disk storage is not cheaper, take place, make noise, so, for large warehouses (or huge volumes database), the cost of the storage become important. IBM DB2 have a solution, with the data compression named &#8220;Venom&#8221; technology, reducing storage requirements, improving I/O, and providing quicker data access from the disk.</p>
<p>DB2 uses a dictionary based algorithm for compressing data records. DB2 9 will scan tables, and search for duplicate occurrences, then assign a short numeric key to each entries. You will understand better with a picture:</p>
<div id="attachment_216" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-216" title="db2compressdata" src="http://blog.mycado.fr/wp-content/uploads/2009/09/db2compressdata.png" alt="Compress data " width="500" height="200" /><p class="wp-caption-text">Compress data </p></div>
<p>Each new occurences of &#8220;Sophie&#8221;, &#8220;New York&#8221;, &#8220;IBM US&#8221;, will be respectively assign to &#8220;(01)&#8221;, &#8220;(19)&#8221; and &#8220;(09)&#8221;. This is very useful on large table. Each time a new row is added to the table, DB2 will automatically compress these new data.</p>
<p>Seems to be good, let&#8217;s try on our DB2 now. To enable the compression,  we should turn on the &#8220;COMPRESS&#8221; option on the table.</p>
<pre>CREATE TABLE Users COMPRESS YES</pre>
<p>or use alter if the table is already created:</p>
<pre>ALTER TABLE Users COMPRESS YES</pre>
<p>Typically, we can save an average ratio of 45 to 75 percent of our storage space. Next time, we&#8217;ll see how to use the inspect tool, to determine the compression ratio.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mycado.fr/2009/09/db2-data-compression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
