<?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 Query Performance Tips</title>
	<atom:link href="http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/</link>
	<description>A web development blog</description>
	<lastBuildDate>Wed, 11 Jan 2012 11:48:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: code reduction</title>
		<link>http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/comment-page-1/#comment-533</link>
		<dc:creator>code reduction</dc:creator>
		<pubDate>Fri, 12 Mar 2010 09:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.84bytes.com/?p=130#comment-533</guid>
		<description>Thanks very much for taking your time to create this very useful infos</description>
		<content:encoded><![CDATA[<p>Thanks very much for taking your time to create this very useful infos</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daily Links &#124; AndySowards.com :: Professional Web Design, Development, Programming, Hacks, Downloads, Math and being a Web 2.0 Hipster?</title>
		<link>http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/comment-page-1/#comment-475</link>
		<dc:creator>Daily Links &#124; AndySowards.com :: Professional Web Design, Development, Programming, Hacks, Downloads, Math and being a Web 2.0 Hipster?</dc:creator>
		<pubDate>Sat, 28 Feb 2009 01:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.84bytes.com/?p=130#comment-475</guid>
		<description>[...] MySQL Query Performance Tips &#124; 84 Bytes More awesome tips for MySQL (tags: tutorial optimization performance mysql optimisation) [...]</description>
		<content:encoded><![CDATA[<p>[...] MySQL Query Performance Tips | 84 Bytes More awesome tips for MySQL (tags: tutorial optimization performance mysql optimisation) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artem Russakovskii</title>
		<link>http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/comment-page-1/#comment-474</link>
		<dc:creator>Artem Russakovskii</dc:creator>
		<pubDate>Fri, 27 Feb 2009 20:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.84bytes.com/?p=130#comment-474</guid>
		<description>The last one &quot;INSERT … ON DUPLICATE KEY update (INSERT IGNORE) to avoid having to SELECT&quot; in some cases can be really bad for your slaves, as INSERT IGNORE will propagate to all slaves, causing slave lag. If you expect lots of INSERTs to dupe, it&#039;s better to SELECT and INSERT selectively.

Artem</description>
		<content:encoded><![CDATA[<p>The last one &#8220;INSERT … ON DUPLICATE KEY update (INSERT IGNORE) to avoid having to SELECT&#8221; in some cases can be really bad for your slaves, as INSERT IGNORE will propagate to all slaves, causing slave lag. If you expect lots of INSERTs to dupe, it&#8217;s better to SELECT and INSERT selectively.</p>
<p>Artem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TravisO</title>
		<link>http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/comment-page-1/#comment-417</link>
		<dc:creator>TravisO</dc:creator>
		<pubDate>Mon, 03 Nov 2008 21:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.84bytes.com/?p=130#comment-417</guid>
		<description>I&#039;d also like to add, in extreme niche scenarios, using a Unix epoch style timestamp (with an INT datatype) is more efficient than the DateTime field.  I can&#039;t vouch for the performance difference, it&#039;s probably pretty small, but back in 2001 with MySQL 4, I saw performance gains in the 8 fold difference (that&#039;s 800%).

But I have faith in today&#039;s hardware and MySQL 5 builds and I haven&#039;t attempted to recreate my old benchmarks.  Despite, the fact is MySQL has to store date/time internally, the format you see is massaged for humor consumptions, so conversions are being executed here, the less conversions the better.  And on that note, I recently ran across a system where the coder irresponsibly retrieved all data for a certain date by doing

SELECT * FROM table WHERE date LIKE &#039;2008-11-01%&#039;

Instead of simply using BETWEEN, obviously this incurred massive slowdowns.</description>
		<content:encoded><![CDATA[<p>I&#8217;d also like to add, in extreme niche scenarios, using a Unix epoch style timestamp (with an INT datatype) is more efficient than the DateTime field.  I can&#8217;t vouch for the performance difference, it&#8217;s probably pretty small, but back in 2001 with MySQL 4, I saw performance gains in the 8 fold difference (that&#8217;s 800%).</p>
<p>But I have faith in today&#8217;s hardware and MySQL 5 builds and I haven&#8217;t attempted to recreate my old benchmarks.  Despite, the fact is MySQL has to store date/time internally, the format you see is massaged for humor consumptions, so conversions are being executed here, the less conversions the better.  And on that note, I recently ran across a system where the coder irresponsibly retrieved all data for a certain date by doing</p>
<p>SELECT * FROM table WHERE date LIKE &#8217;2008-11-01%&#8217;</p>
<p>Instead of simply using BETWEEN, obviously this incurred massive slowdowns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peng wang</title>
		<link>http://www.84bytes.com/2008/10/14/mysql-query-performance-tips/comment-page-1/#comment-359</link>
		<dc:creator>peng wang</dc:creator>
		<pubDate>Wed, 15 Oct 2008 12:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.84bytes.com/?p=130#comment-359</guid>
		<description>excellent tips, very useful for newbie like me, thks for sharing ^_^</description>
		<content:encoded><![CDATA[<p>excellent tips, very useful for newbie like me, thks for sharing ^_^</p>
]]></content:encoded>
	</item>
</channel>
</rss>

