<?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: 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>
	<lastBuildDate>Wed, 14 Jul 2010 10:51:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Kai Sellgren</title>
		<link>http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/comment-page-1/#comment-40578</link>
		<dc:creator>Kai Sellgren</dc:creator>
		<pubDate>Fri, 06 Mar 2009 15:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/?p=55#comment-40578</guid>
		<description>Joost Pluijimers,

The lazy loading was done correctly. The function _connect is a private function, therefore, may only be called by the class itself. The class only calls the _connect function in case you are doing a query. In addition to that, the query function will look if the connection has already been made.</description>
		<content:encoded><![CDATA[<p>Joost Pluijimers,</p>
<p>The lazy loading was done correctly. The function _connect is a private function, therefore, may only be called by the class itself. The class only calls the _connect function in case you are doing a query. In addition to that, the query function will look if the connection has already been made.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mangesh</title>
		<link>http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/comment-page-1/#comment-40517</link>
		<dc:creator>Mangesh</dc:creator>
		<pubDate>Wed, 21 Jan 2009 12:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digitalstruct.com/?p=55#comment-40517</guid>
		<description>Nice Article... 
Thanks a lot!!

I am a bit confused with a scenario. I got to select 42 columns out of 52 from a table. Columns include primary key columns as well. What will be better? selecting 42 columns or using select *? What is the limit till the time Select  performs better than Select * ?</description>
		<content:encoded><![CDATA[<p>Nice Article&#8230;<br />
Thanks a lot!!</p>
<p>I am a bit confused with a scenario. I got to select 42 columns out of 52 from a table. Columns include primary key columns as well. What will be better? selecting 42 columns or using select *? What is the limit till the time Select  performs better than Select * ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joost Pluijmers</title>
		<link>http://blog.digitalstruct.com/2008/06/18/php-performance-series-maximizing-your-mysql-database/comment-page-1/#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&#039;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-&gt;_connection = mysql_connect()) {
			$this-&gt;_connected = true;
		}
	}

In every check you connect to the database. It should be something like:

private function _connect() {
		if (is_null($this-&gt;_connection)) {
                        $this-&gt;_connection = mysql_connect();
			$this-&gt;_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 &quot;_connect&quot; php doesn&#039;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>
</channel>
</rss>
