<?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"
	>
<channel>
	<title>Comments on: PHP Performance Series: Maximizing Your MySQL Database</title>
	<atom:link href="http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/</link>
	<description>Getting inside the mind of a php developer.</description>
	<pubDate>Thu, 20 Nov 2008 21:25:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Joost Pluijmers</title>
		<link>http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/#comment-39382</link>
		<dc:creator>Joost Pluijmers</dc:creator>
		<pubDate>Fri, 20 Jun 2008 07:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/?p=55#comment-39382</guid>
		<description>Hello, Altough a great atricle I don't aggree with your lazzy solution to connecting to the database. Because in the following statement you always create a connection to the database:

private function _connect() {
		if ($this-&#62;_connection = mysql_connect()) {
			$this-&#62;_connected = true;
		}
	}

In every check you connect to the database. It should be something like:

private function _connect() {
		if (is_null($this-&#62;_connection)) {
                        $this-&#62;_connection = mysql_connect();
			$this-&#62;_connected = true;
		}
	}

*for clarity I skipped the statement to check or mysql is actualy connected.

In this example you see that everytime you try to "_connect" php doesn't connect to the SQL server if a connection is already set.</description>
		<content:encoded><![CDATA[<p>Hello, Altough a great atricle I don&#8217;t aggree with your lazzy solution to connecting to the database. Because in the following statement you always create a connection to the database:</p>
<p>private function _connect() {<br />
		if ($this-&gt;_connection = mysql_connect()) {<br />
			$this-&gt;_connected = true;<br />
		}<br />
	}</p>
<p>In every check you connect to the database. It should be something like:</p>
<p>private function _connect() {<br />
		if (is_null($this-&gt;_connection)) {<br />
                        $this-&gt;_connection = mysql_connect();<br />
			$this-&gt;_connected = true;<br />
		}<br />
	}</p>
<p>*for clarity I skipped the statement to check or mysql is actualy connected.</p>
<p>In this example you see that everytime you try to &#8220;_connect&#8221; php doesn&#8217;t connect to the SQL server if a connection is already set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CyberGhost</title>
		<link>http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/#comment-39380</link>
		<dc:creator>CyberGhost</dc:creator>
		<pubDate>Thu, 19 Jun 2008 23:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/?p=55#comment-39380</guid>
		<description>Mike, thanks for the quick follow-up about MyISAM vs. InnoDB. Also, I didn't know that the IN() syntax is so fast on primary keys. Suppose we learn new things every day :)</description>
		<content:encoded><![CDATA[<p>Mike, thanks for the quick follow-up about MyISAM vs. InnoDB. Also, I didn&#8217;t know that the IN() syntax is so fast on primary keys. Suppose we learn new things every day <img src='http://blog.digitalstruct.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Willbanks</title>
		<link>http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/#comment-39377</link>
		<dc:creator>Mike Willbanks</dc:creator>
		<pubDate>Thu, 19 Jun 2008 14:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/?p=55#comment-39377</guid>
		<description>Stuart -
I had initially wrong in my notepad on what I was writing on to address a few of those concepts... That's what I get for attempting to finish writing this thing so late.  I figured if I didn't post it last night I wouldn't be posting it for another month... This article was half written for the last 2 months. :)</description>
		<content:encoded><![CDATA[<p>Stuart -<br />
I had initially wrong in my notepad on what I was writing on to address a few of those concepts&#8230; That&#8217;s what I get for attempting to finish writing this thing so late.  I figured if I didn&#8217;t post it last night I wouldn&#8217;t be posting it for another month&#8230; This article was half written for the last 2 months. <img src='http://blog.digitalstruct.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
