<?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>cat brain.log &#124; less &#187; pdo</title>
	<atom:link href="http://log.largevoid.com/tag/pdo/feed/" rel="self" type="application/rss+xml" />
	<link>http://log.largevoid.com</link>
	<description>Getting it down on `paper`</description>
	<lastBuildDate>Mon, 06 Feb 2012 06:23:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Things that Kill MySQL Performance</title>
		<link>http://log.largevoid.com/2009/11/things-that-kill-mysql-performance/</link>
		<comments>http://log.largevoid.com/2009/11/things-that-kill-mysql-performance/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 01:59:19 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Lessons]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[pdo]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://log.largevoid.com/?p=74</guid>
		<description><![CDATA[Failing to plan for scaling out, scaling up Not using EXPLAIN (learn from your mistakes) Using the wrong data types (hint: use smallest fixed-size) Using persistent connections in PHP (leads to zombie processes) Using a heavy DB abstraction layer (hint: use PDO or custom) Using the wrong storage engine (MEMORY, ARCHIVE, InnoDB, etc.) Using indexes [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Failing to plan for scaling out, scaling up</li>
<li>Not using EXPLAIN (learn from your mistakes)</li>
<li>Using the wrong data types (hint: use smallest fixed-size)</li>
<li>Using persistent connections in PHP (leads to zombie processes)</li>
<li>Using a heavy DB abstraction layer (hint: use PDO or custom)</li>
<li>Using the wrong storage engine (MEMORY, ARCHIVE, InnoDB, etc.)</li>
<li>Using indexes improperly (hint: select in the order of the index; hint: keep primary key small)</li>
<li>Issuing SQL queries that can&#8217;t be cached easily; having too large of a query cache</li>
<li>Using stored procedures when prepared statements are better</li>
<li>Using functions on indexed columns in the WHERE clause</li>
<li>Not indexing important columns; having redundant indexes</li>
<li>Using sub-queries when joins would be better</li>
<li>Issuing avoidable deep scans</li>
<li>Doing SELECT COUNT(*) without WHERE on InnoDB table.</li>
<li>Failing to profile/benchmark your SQL</li>
<li>Not using AUTO_INCREMENT if applicable</li>
<li>Not using ON DUPLICATE KEY UPDATE (1 query vs 2)</li>
</ol>
<p>Reference:</p>
<ul>
<li><a href="http://www.slideshare.net/techdude/how-to-kill-mysql-performance">How to Kill MySQL Performance</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://log.largevoid.com/2009/11/things-that-kill-mysql-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  log.largevoid.com/tag/pdo/feed/ ) in 0.21814 seconds, on Feb 8th, 2012 at 3:34 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 4:34 am UTC -->
