<?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>JEB&#039;s Blog &#187; MySQL</title>
	<atom:link href="http://blog.james.rcpt.to/category/computing/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.james.rcpt.to</link>
	<description>Scribblings of a Techie</description>
	<lastBuildDate>Fri, 23 Jul 2010 16:04:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to convert IPv4 to IPv6 in MySQL</title>
		<link>http://blog.james.rcpt.to/2010/07/08/hwo-to-convert-ipv4-to-ipv6-in-mysql/</link>
		<comments>http://blog.james.rcpt.to/2010/07/08/hwo-to-convert-ipv4-to-ipv6-in-mysql/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 14:10:59 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.james.rcpt.to/2010/07/08/hwo-to-convert-ipv4-to-ipv6-in-mysql/</guid>
		<description><![CDATA[If you original IPv4 address is in an unsigned long called &#8220;IPv4&#8220;, then&#8230; select concat("0:0:0:0:0:0:", LPAD(CONV(substring_index(inet_ntoa(IPv4), '.', 1), 10, 16), 2, "0"), LPAD(CONV(SUBSTRING_INDEX(SUBSTRING_INDEX( inet_ntoa(IPv4) , '.', 2 ),'.',-1), 10, 16), 2, "0"), ":", LPAD(CONV(SUBSTRING_INDEX(SUBSTRING_INDEX( inet_ntoa(IPv4) , '.', 3 ),'.',-1), 10, 16), 2, "0"), LPAD(CONV(SUBSTRING_INDEX(SUBSTRING_INDEX( inet_ntoa(IPv4) , '.', 4 ),'.',-1), 10, 16), 2, "0")) as IPv6 [...]]]></description>
			<content:encoded><![CDATA[<p>If you original IPv4 address is in an unsigned long called &#8220;<em>IPv4</em>&#8220;, then&#8230;</p>
<p><code>select concat("0:0:0:0:0:0:", LPAD(CONV(substring_index(inet_ntoa(IPv4), '.', 1), 10, 16), 2, "0"), LPAD(CONV(SUBSTRING_INDEX(SUBSTRING_INDEX( inet_ntoa(IPv4) , '.', 2 ),'.',-1), 10, 16), 2, "0"), ":", LPAD(CONV(SUBSTRING_INDEX(SUBSTRING_INDEX( inet_ntoa(IPv4) , '.', 3 ),'.',-1), 10, 16), 2, "0"), LPAD(CONV(SUBSTRING_INDEX(SUBSTRING_INDEX( inet_ntoa(IPv4) , '.', 4 ),'.',-1), 10, 16), 2, "0")) as IPv6  from Log3NF.Access  limit 1000;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.james.rcpt.to/2010/07/08/hwo-to-convert-ipv4-to-ipv6-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Query Cache: still waiting for duplicate query checking</title>
		<link>http://blog.james.rcpt.to/2009/05/13/mysql-query-cache-still-waiting-for-duplicate-query-checking/</link>
		<comments>http://blog.james.rcpt.to/2009/05/13/mysql-query-cache-still-waiting-for-duplicate-query-checking/#comments</comments>
		<pubDate>Wed, 13 May 2009 00:26:05 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://blog.james.rcpt.to/?p=185</guid>
		<description><![CDATA[Way, way back in 2005 (4 years and counting) I finally reported a bug into the then MySQL 5.0 about an issue I was seeing (often) on high volume sites where a single query, if not in the query cache, but spawned from two (or more) simultaneous threads would both be executed in full; this [...]]]></description>
			<content:encoded><![CDATA[<p>Way, way back in 2005 (4 years and counting) I finally reported a bug into the then <a href="http://mysql.com/">MySQL</a> 5.0 about an issue I was seeing (often) on high volume sites where a single query, if not in the query cache, but spawned from two (or more) simultaneous threads would both be executed in full; this is instead of one execution, and then the query cache being populated.</p>
<p>Reference: <a href="http://bugs.mysql.com/bug.php?id=15044">Bug 15044</a>, and <a href="http://forge.mysql.com/worklog/task.php?id=1293">WorkLog 1293</a>.</p>
<p>I had been seeing this for&#8230; well, years before hand, but considered it to be &#8220;just me&#8221;. Since I filed that bug, others have come forward and said they have seen the same issue.</p>
<p>Now, with the Oracle/Sun merge, and Sun having shelled out to &#8220;purchase&#8221; MySQL, we see a miraculous MySQL 5.4 being drafted together. Its good; but it appears to be a simple crowd pleaser that should have happened years ago &#8211; integrate in some very popular performance improvements (notably from <a href="http://code.google.com/p/google-mysql-tools/">Google&#8217;s code repository</a>). If code is being contributed, and it works, why wasn&#8217;t this done earlier? And if not earlier, why now? Smokescreen? Last ditch effort before the project is canned by its new owner? Of course, this has been circulating for a while; I&#8217;m not posting this later after that&#8217;s been in the news for a few weeks now.</p>
<p>What is interesting is the &#8220;<a href="http://forge.mysql.com/wiki/Refactoring_MySQL">Refactoring MySQL</a>&#8221; project being discussed. Where does this leave MySQL 6 &#8211; a little abandoned from here. And then with <a href="http://askmonty.org/wiki/index.php/MariaDB">MariaDB</a> and <a href="https://launchpad.net/drizzle">Drizzle</a> now forked and picking up attention (external to MySQL/Sun/Oracle), it seems the entire thing is just becoming a mess. Drizzel is supposed to be the performance version &#8211; but with the google patches being integrated, perhaps the core MySQL branded project is catching up?</p>
<p>What&#8217;s looking clearer is: Postgres. From my perspective, its worse for MySQL in <a href="http://www.debian.org/">Debian</a>. Lenny (stable now) has MySQL 5.0. The Experimental repo has 5.1 (5.1.34), but this hasn&#8217;t even transitioned to Unstable yet!</p>
<p>Here&#8217;s what I&#8217;d like to see:</p>
<ol>
<li>Someone picks up <a href="http://bugs.mysql.com/bug.php?id=15044">Bug 15044</a>/<a href="http://forge.mysql.com/worklog/task.php?id=1293">WorkLog 1293</a>.</li>
<li>5.4 goes STABLE from MySQL/Sun/Oracle real soon now, with or without my pet qcache bug/feature &#8211; it&#8217;s a big enough win for multi-core systems as it stands</li>
<li>Debian moves MySQl 5.1 from experimental straight to Unstable &#8211; can the mysql-server-5.1 package can coexist with mysql-server-5.0?</li>
<li>Debian also adds, along side the MySQl 5.0 and 5.1 servers, the 5.4 into Unstable, and 6.0 into Experimental.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.james.rcpt.to/2009/05/13/mysql-query-cache-still-waiting-for-duplicate-query-checking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
