<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: MySQL Compression</title>
	<atom:link href="http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/</link>
	<description>Just another Blogs.n1zyy.com weblog</description>
	<lastBuildDate>Wed, 07 Dec 2011 01:51:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: andrew</title>
		<link>http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/comment-page-1/#comment-2692</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Fri, 04 Dec 2009 19:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/#comment-2692</guid>
		<description>Shaun: You&#039;re correct, the code as listed before was incorrect. I must have copied it over wrong. I&#039;ve updated the post; thanks for commenting!</description>
		<content:encoded><![CDATA[<p>Shaun: You&#8217;re correct, the code as listed before was incorrect. I must have copied it over wrong. I&#8217;ve updated the post; thanks for commenting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaun</title>
		<link>http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/comment-page-1/#comment-2682</link>
		<dc:creator>shaun</dc:creator>
		<pubDate>Sat, 31 Oct 2009 20:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/#comment-2682</guid>
		<description>This got me on the right track, but compress code needs to be the following to be compatible with MySQL UNCOMPRESS():

$compressed = pack(&#039;L&#039;, strlen($string)).gzcompress($string);</description>
		<content:encoded><![CDATA[<p>This got me on the right track, but compress code needs to be the following to be compatible with MySQL UNCOMPRESS():</p>
<p>$compressed = pack(&#8216;L&#8217;, strlen($string)).gzcompress($string);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew</title>
		<link>http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/comment-page-1/#comment-1509</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Thu, 30 Jul 2009 17:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/#comment-1509</guid>
		<description>Olaf, while that could cause issues for the code above, it only occurs if you&#039;re storing the compressed string in a CHAR or VARCHAR column. And the manual states:

Use of nonbinary string data types such as CHAR or VARCHAR to store compressed strings is not recommended ... because character set conversion may occur. Use a VARBINARY or BLOB binary string column instead.

We&#039;ve definitely ran into problems where I work by storing compressed data in a VARCHAR column, so I&#039;d personally reiterate their warning.</description>
		<content:encoded><![CDATA[<p>Olaf, while that could cause issues for the code above, it only occurs if you&#8217;re storing the compressed string in a CHAR or VARCHAR column. And the manual states:</p>
<p>Use of nonbinary string data types such as CHAR or VARCHAR to store compressed strings is not recommended &#8230; because character set conversion may occur. Use a VARBINARY or BLOB binary string column instead.</p>
<p>We&#8217;ve definitely ran into problems where I work by storing compressed data in a VARCHAR column, so I&#8217;d personally reiterate their warning.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/comment-page-1/#comment-1318</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Mon, 13 Jul 2009 16:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.n1zyy.com/andrew/2007/06/30/mysql-compression/#comment-1318</guid>
		<description>What about the possible space character at the end of the uncompressed string? Mysql documentation says: &quot;If the string ends with space, an extra “.” character is added to avoid problems with endspace trimming...&quot;

This will break in your case, wouldn&#039;t it?</description>
		<content:encoded><![CDATA[<p>What about the possible space character at the end of the uncompressed string? Mysql documentation says: &#8220;If the string ends with space, an extra “.” character is added to avoid problems with endspace trimming&#8230;&#8221;</p>
<p>This will break in your case, wouldn&#8217;t it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

