<?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>workblog &#187; MySQL</title>
	<atom:link href="http://iandunn.name/workblog/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://iandunn.name/workblog</link>
	<description></description>
	<lastBuildDate>Wed, 25 Aug 2010 22:23:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Troubleshooting Slow MySQL Queries</title>
		<link>http://iandunn.name/workblog/troubleshooting-slow-mysql-queries/</link>
		<comments>http://iandunn.name/workblog/troubleshooting-slow-mysql-queries/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 17:33:01 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://iandunn.name/workblog/?p=328</guid>
		<description><![CDATA[Ian Gilfillan&#8217;s article on using indexes in MySQL has a good explanation of how to use the EXPLAIN statement to analyze a query, and what to look out for. You can also check out Jesse Farmer&#8217;s optimization tips for a primer on more advanced techniques.
]]></description>
			<content:encoded><![CDATA[<p>Ian Gilfillan&#8217;s article on <a href="http://www.databasejournal.com/features/mysql/article.php/1382791/Optimizing-MySQL-Queries-and-Indexes.htm">using indexes in MySQL</a> has a good explanation of how to use the EXPLAIN statement to analyze a query, and what to look out for. You can also check out Jesse Farmer&#8217;s <a href="http://20bits.com/articles/10-tips-for-optimizing-mysql-queries-that-dont-suck/">optimization tips</a> for a primer on more advanced techniques.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/workblog/troubleshooting-slow-mysql-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Natural Sorting for MySQL</title>
		<link>http://iandunn.name/workblog/natural-sorting-for-mysql/</link>
		<comments>http://iandunn.name/workblog/natural-sorting-for-mysql/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 16:38:02 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://iandunn.name/workblog/?p=242</guid>
		<description><![CDATA[MySQL doesn&#8217;t provide a way to perform natural sorting on a string, so if you have numbers in your data you may get results like this
Product 110
Product 120
Product 13
Product 140
There are a lot of hacks available, but all of the ones I&#8217;ve seen only work in specific circumstances. The only comprehensive solution I found to [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL doesn&#8217;t provide a way to perform <a href="http://sourcefrog.net/projects/natsort/">natural sorting</a> on a string, so if you have numbers in your data you may get results like this</p>
<p style="padding-left: 30px;">Product 110<br />
Product 120<br />
Product 13<br />
Product 140</p>
<p>There are a lot of hacks available, but all of the ones I&#8217;ve seen only work in specific circumstances. The only comprehensive solution I found to do the sorting in MySQL is <a href="http://drupal.org/project/natsort">Drupal&#8217;s natsort module</a>. You don&#8217;t need to be running Drupal to use it, just issue the queries that create the function and it&#8217;s dependencies, and you can then call it in your regular queries. But, it requires MySQL 5, so if you&#8217;re working on an older server and your data doesn&#8217;t work with one of the hacks, then you&#8217;ll probably just have to do the natural sorting in your scripting language, using something like <a href="http://us2.php.net/manual/en/function.natsort.php">PHP&#8217;s natsort()</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/workblog/natural-sorting-for-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passing dates and times between PHP and MySQL</title>
		<link>http://iandunn.name/workblog/passing-dates-and-times-between-php-and-mysql/</link>
		<comments>http://iandunn.name/workblog/passing-dates-and-times-between-php-and-mysql/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 21:59:35 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://iandunn.name/workblog/?p=125</guid>
		<description><![CDATA[Richard Lord wrote a good article explaining the various ways of handling dates and times with PHP and MySQL.
]]></description>
			<content:encoded><![CDATA[<p>Richard Lord wrote a good article explaining the various ways of <a href="http://www.bigroom.co.uk/blog/dates-in-php-and-mysql">handling dates and times with PHP and MySQL</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/workblog/passing-dates-and-times-between-php-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
