<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: MySQL Prepared Statements and PHP : A small experiment</title>
	<atom:link href="http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/</link>
	<description>ruminations of a shiftless mind</description>
	<lastBuildDate>Sat, 14 Nov 2009 10:56:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Enlaces rápidos (12-11-08) &#124; Tecnolink Informática Castellón</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-97</link>
		<dc:creator>Enlaces rápidos (12-11-08) &#124; Tecnolink Informática Castellón</dc:creator>
		<pubDate>Thu, 20 Nov 2008 15:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-97</guid>
		<description>[...] MySQL Prepared Statements and PHP : A small experiment [...]</description>
		<content:encoded><![CDATA[<p>[...] MySQL Prepared Statements and PHP : A small experiment [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubayeet</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-85</link>
		<dc:creator>rubayeet</dc:creator>
		<pubDate>Mon, 03 Nov 2008 07:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-85</guid>
		<description>@ John J. : I ran the same scripts for 1000, 100 and 10 iterations. Interestingly prepared statement beat traditional query by a marginal 20% in all cases. I&#039;m yet to find a breakpoint. Why don&#039;t you give it a try too?</description>
		<content:encoded><![CDATA[<p>@ John J. : I ran the same scripts for 1000, 100 and 10 iterations. Interestingly prepared statement beat traditional query by a marginal 20% in all cases. I&#8217;m yet to find a breakpoint. Why don&#8217;t you give it a try too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rubayeet Islam&#8217;s Blog: MySQL Prepared Statements and PHP : A small experiment : WebNetiques</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-84</link>
		<dc:creator>Rubayeet Islam&#8217;s Blog: MySQL Prepared Statements and PHP : A small experiment : WebNetiques</dc:creator>
		<pubDate>Fri, 31 Oct 2008 13:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-84</guid>
		<description>[...] a recent post to his blog Rubayeet Islam compared the more traditional way of running a query in MySQL versus a [...]</description>
		<content:encoded><![CDATA[<p>[...] a recent post to his blog Rubayeet Islam compared the more traditional way of running a query in MySQL versus a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rubayeet Islam&#8217;s Blog: MySQL Prepared Statements and PHP : A small experiment : Dragonfly Networks</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-83</link>
		<dc:creator>Rubayeet Islam&#8217;s Blog: MySQL Prepared Statements and PHP : A small experiment : Dragonfly Networks</dc:creator>
		<pubDate>Fri, 31 Oct 2008 10:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-83</guid>
		<description>[...] a recent post to his blog Rubayeet Islam compared the more traditional way of running a query in MySQL versus a [...]</description>
		<content:encoded><![CDATA[<p>[...] a recent post to his blog Rubayeet Islam compared the more traditional way of running a query in MySQL versus a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John J.</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-81</link>
		<dc:creator>John J.</dc:creator>
		<pubDate>Fri, 31 Oct 2008 00:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-81</guid>
		<description>Have you tested this script to see where the breakpoint in efficiency is? It&#039;s one thing to do more than 100,000 iterations of the select and another ifyou only do 100 or 10. I&#039;m curious to see what you find.</description>
		<content:encoded><![CDATA[<p>Have you tested this script to see where the breakpoint in efficiency is? It&#8217;s one thing to do more than 100,000 iterations of the select and another ifyou only do 100 or 10. I&#8217;m curious to see what you find.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Albi</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-80</link>
		<dc:creator>Albi</dc:creator>
		<pubDate>Thu, 30 Oct 2008 20:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-80</guid>
		<description>Hi, results of this test can be wrong. I recommend you using Apache Benchamark (AB.exe) - small program provided with apache. It allows you to run many tests with diffrent load (many requests at once). I think it should be a bit more accurate in this case :). 

Sorry for my english, i hope you colud understand me ;)</description>
		<content:encoded><![CDATA[<p>Hi, results of this test can be wrong. I recommend you using Apache Benchamark (AB.exe) &#8211; small program provided with apache. It allows you to run many tests with diffrent load (many requests at once). I think it should be a bit more accurate in this case <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
<p>Sorry for my english, i hope you colud understand me <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ecommy</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-79</link>
		<dc:creator>Ecommy</dc:creator>
		<pubDate>Thu, 30 Oct 2008 19:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-79</guid>
		<description>I agree with EllisGL, I&#039;ll never use a code such:

for($i = 1; $i &lt;= 1000; $i++){

$query = &quot;SELECT * FROM user WHERE user_id = $i&quot;;

//run the query and fetch data
}


Rather SELECT * FROM user WHERE user_id&lt;=1000
and then 
while($d = mysql_fetch_object($query)) {
  //process the script logic
}


Anyway I understand this is just an example, the post is very interesting because it increases the awareness for programmers to keep up to date in using best practices in their daily work</description>
		<content:encoded><![CDATA[<p>I agree with EllisGL, I&#8217;ll never use a code such:</p>
<p>for($i = 1; $i &lt;= 1000; $i++){</p>
<p>$query = &#8220;SELECT * FROM user WHERE user_id = $i&#8221;;</p>
<p>//run the query and fetch data<br />
}</p>
<p>Rather SELECT * FROM user WHERE user_id&lt;=1000<br />
and then<br />
while($d = mysql_fetch_object($query)) {<br />
  //process the script logic<br />
}</p>
<p>Anyway I understand this is just an example, the post is very interesting because it increases the awareness for programmers to keep up to date in using best practices in their daily work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EllisGL</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-75</link>
		<dc:creator>EllisGL</dc:creator>
		<pubDate>Tue, 14 Oct 2008 12:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-75</guid>
		<description>Rubayeet - Yeah I think pagination would have been a great example to add to the end of the article. Real world scenario.</description>
		<content:encoded><![CDATA[<p>Rubayeet &#8211; Yeah I think pagination would have been a great example to add to the end of the article. Real world scenario.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubayeet</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-74</link>
		<dc:creator>rubayeet</dc:creator>
		<pubDate>Tue, 14 Oct 2008 04:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-74</guid>
		<description>Michael, the query written above was just to demonstrate the performance gains of prepared queries over to traditional ones. Of course, in a real world situation one must think 10 times before running a query in a for loop.

I think a pagination scenario would have been a much more appropriate example, where you run the same query multiple times just changing the LIMIT parameters.</description>
		<content:encoded><![CDATA[<p>Michael, the query written above was just to demonstrate the performance gains of prepared queries over to traditional ones. Of course, in a real world situation one must think 10 times before running a query in a for loop.</p>
<p>I think a pagination scenario would have been a much more appropriate example, where you run the same query multiple times just changing the LIMIT parameters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubayeet</title>
		<link>http://rubayeet.wordpress.com/2008/10/07/mysql-prepared-statements-and-php-experiment/#comment-73</link>
		<dc:creator>rubayeet</dc:creator>
		<pubDate>Tue, 14 Oct 2008 04:26:42 +0000</pubDate>
		<guid isPermaLink="false">http://rubayeet.wordpress.com/?p=78#comment-73</guid>
		<description>Kudos on the coding examples EllisGL. However the idea was to prevent MySQL from parsing the same query again and again, which I&#039;m not sure being handled in your script.</description>
		<content:encoded><![CDATA[<p>Kudos on the coding examples EllisGL. However the idea was to prevent MySQL from parsing the same query again and again, which I&#8217;m not sure being handled in your script.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
