<?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>The Sillican Files &#187; php</title>
	<atom:link href="http://blog.sillica.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sillica.com</link>
	<description>Computers, Games, and Life Randomness</description>
	<lastBuildDate>Mon, 19 Jul 2010 14:28:56 +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>Why is the word EXPLAIN in front of every MySQL query in SHOW PROCESSLIST?</title>
		<link>http://blog.sillica.com/2008/07/04/why-is-the-word-explain-in-front-of-every-mysql-query-in-show-processlist/</link>
		<comments>http://blog.sillica.com/2008/07/04/why-is-the-word-explain-in-front-of-every-mysql-query-in-show-processlist/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 02:28:17 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[kb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programmer]]></category>

		<guid isPermaLink="false">http://blog.sillica.com/?p=538</guid>
		<description><![CDATA[So, I do a SHOW PROCESSLIST command in phpMyAdmin, and it shows a ton of SELECT statements that have EXPLAIN in front of every one of them!  Now, I never even heard of the EXPLAIN keyword, so I certainly didn&#8217;t do it.
It took me a couple hours to figure out, but PHP was putting it [...]]]></description>
			<content:encoded><![CDATA[<p>So, I do a SHOW PROCESSLIST command in phpMyAdmin, and it shows a ton of SELECT statements that have EXPLAIN in front of every one of them!  Now, I never even heard of the EXPLAIN keyword, so I certainly didn&#8217;t do it.</p>
<p>It took me a couple hours to figure out, but PHP was putting it there.  I had turned mysql.trace_mode = On because the comments said it would give me warnings to table/index scans.  It did give me a couple warnings where I didn&#8217;t call mysql_free_result(), so I was happy with it.  But apparently it also added EXPLAIN to all SELECT statements in order to get some data out of that.  Well, I don&#8217;t want to slow down the database, so I turned that off.  Good to know it&#8217;s there I guess, and exactly what it does.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sillica.com/2008/07/04/why-is-the-word-explain-in-front-of-every-mysql-query-in-show-processlist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
