<?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>Comentários para IceBurn Snippets</title>
	<atom:link href="http://iceburn.info/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://iceburn.info</link>
	<description>Tutoriais &#38; Trechos de Código PHP, MySQL, Apache...</description>
	<lastBuildDate>Wed, 03 Mar 2010 13:27:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comentário em Actualizar Automaticamente a Base de Dados do GeoIP por iCarneiro</title>
		<link>http://iceburn.info/linux/actualizar-automaticamente-a-base-de-dados-do-geoip.html/comment-page-1#comment-1295</link>
		<dc:creator>iCarneiro</dc:creator>
		<pubDate>Wed, 03 Mar 2010 13:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=341#comment-1295</guid>
		<description>Gostei! 

Parabéns pelo trabalho!</description>
		<content:encoded><![CDATA[<p>Gostei! </p>
<p>Parabéns pelo trabalho!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário em Speed Up MySQL: Replace or On Duplicate Key Update? por Nick</title>
		<link>http://iceburn.info/mysql/speed-up-mysql-replace-or-on-duplicate-key-update.html/comment-page-1#comment-1279</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Fri, 26 Feb 2010 20:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=145#comment-1279</guid>
		<description>You both seem to have missed the preferred solution to the indicated scenario.

In this logging situation where you are updating ONE row each time it is much better to do an UPDATE and check the number of affected rows.  If zero rows are affected then follow up with an INSERT.  As you will typically have many more UPDATEs than INSERTs this would be the better way although to see any real difference you need quite significant levels of concurrency.</description>
		<content:encoded><![CDATA[<p>You both seem to have missed the preferred solution to the indicated scenario.</p>
<p>In this logging situation where you are updating ONE row each time it is much better to do an UPDATE and check the number of affected rows.  If zero rows are affected then follow up with an INSERT.  As you will typically have many more UPDATEs than INSERTs this would be the better way although to see any real difference you need quite significant levels of concurrency.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário em Instalar RED5 em CentOS por Rafael</title>
		<link>http://iceburn.info/linux/instalar-red5-em-centos.html/comment-page-1#comment-1195</link>
		<dc:creator>Rafael</dc:creator>
		<pubDate>Fri, 29 Jan 2010 04:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=282#comment-1195</guid>
		<description>Como eu devo proceder para adicionar as regras no iptable?</description>
		<content:encoded><![CDATA[<p>Como eu devo proceder para adicionar as regras no iptable?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário em Utilização Básica de Iptables por Manoel</title>
		<link>http://iceburn.info/linux/utilizacao-basica-de-iptables.html/comment-page-1#comment-1151</link>
		<dc:creator>Manoel</dc:creator>
		<pubDate>Wed, 20 Jan 2010 17:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=257#comment-1151</guid>
		<description>Obrigado, informação muito útil, sou suporte e não tinha esta informação...</description>
		<content:encoded><![CDATA[<p>Obrigado, informação muito útil, sou suporte e não tinha esta informação&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário em Speed Up MySQL: Replace or On Duplicate Key Update? por Daniel</title>
		<link>http://iceburn.info/mysql/speed-up-mysql-replace-or-on-duplicate-key-update.html/comment-page-1#comment-669</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Tue, 15 Sep 2009 13:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=145#comment-669</guid>
		<description>One comment I need to make, the two functions are not identical, though I don&#039;t see a reason to ever use REPLACE INTO.  

ON DUPLICATE KEY can actually access multi-list values as well as accessing the original value of the row.  For another example, consider your table with a &quot;viewCount&quot; column:

INSERT INTO `online` VALUES (2130706433, 1223224699, 1),(3581352818, 1223218573, 1),(1394046411, 1223218580, 1)(1452335504, 1223218580, 1) ON DUPLICATE KEY UPDATE viewCount = viewCount + VALUES(viewCount);

Of course, using VALUES() here won&#039;t do you any good, you should just hard-code the 1 in there, but you get the point.

Note that ON DUPLICATE KEY adds 1 to the affected_rows for any INSERTS, and 2 to the affected_rows for any UPDATES, even in this format.</description>
		<content:encoded><![CDATA[<p>One comment I need to make, the two functions are not identical, though I don&#8217;t see a reason to ever use REPLACE INTO.  </p>
<p>ON DUPLICATE KEY can actually access multi-list values as well as accessing the original value of the row.  For another example, consider your table with a &#8220;viewCount&#8221; column:</p>
<p>INSERT INTO `online` VALUES (2130706433, 1223224699, 1),(3581352818, 1223218573, 1),(1394046411, 1223218580, 1)(1452335504, 1223218580, 1) ON DUPLICATE KEY UPDATE viewCount = viewCount + VALUES(viewCount);</p>
<p>Of course, using VALUES() here won&#8217;t do you any good, you should just hard-code the 1 in there, but you get the point.</p>
<p>Note that ON DUPLICATE KEY adds 1 to the affected_rows for any INSERTS, and 2 to the affected_rows for any UPDATES, even in this format.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário em Install ffmpeg, PHP and eAccelerator on Dreamhost por Lou,RaleighNC</title>
		<link>http://iceburn.info/linux/install-ffmpeg-php-eaccelerator-on-dreamhost.html/comment-page-1#comment-626</link>
		<dc:creator>Lou,RaleighNC</dc:creator>
		<pubDate>Tue, 01 Sep 2009 08:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=19#comment-626</guid>
		<description>Thanks a lot for your assistance!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your assistance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário em Change The Time Zone For an Entire Directory por Change Time Zone with htaccess &#124; Webmaster Sucks</title>
		<link>http://iceburn.info/apache/change-the-time-zone-for-an-entire-directory.html/comment-page-1#comment-586</link>
		<dc:creator>Change Time Zone with htaccess &#124; Webmaster Sucks</dc:creator>
		<pubDate>Wed, 26 Aug 2009 13:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=117#comment-586</guid>
		<description>[...] Source : http://iceburn.info/apache/change-the-time-zone-for-an-entire-directory.html [...]</description>
		<content:encoded><![CDATA[<p>[...] Source : <a href="http://iceburn.info/apache/change-the-time-zone-for-an-entire-directory.html" rel="nofollow">http://iceburn.info/apache/change-the-time-zone-for-an-entire-directory.html</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário em Increased Security With MySQL Based Web Sessions por WGR Studio</title>
		<link>http://iceburn.info/php/increased-security-with-mysql-based-web-sessions.html/comment-page-1#comment-459</link>
		<dc:creator>WGR Studio</dc:creator>
		<pubDate>Fri, 03 Jul 2009 21:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=159#comment-459</guid>
		<description>Waw.. I find this old post with no answer... 

Yes has work.. But i musted changed some methods and variables.. If not all it&#039;s OK .. Thanks</description>
		<content:encoded><![CDATA[<p>Waw.. I find this old post with no answer&#8230; </p>
<p>Yes has work.. But i musted changed some methods and variables.. If not all it&#8217;s OK .. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário em Easily Load Your Pages Faster With Compressed CSS por João Pedro Pereira</title>
		<link>http://iceburn.info/php/easily-load-your-pages-faster-with-compressed-css.html/comment-page-1#comment-430</link>
		<dc:creator>João Pedro Pereira</dc:creator>
		<pubDate>Sun, 14 Jun 2009 14:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=175#comment-430</guid>
		<description>I liked it but I think you could introduce in your system some other features like the tips you can read here: http://joaopedropereira.com/blog/2009/04/03/optimizacao-websites/ below the CSS title.</description>
		<content:encoded><![CDATA[<p>I liked it but I think you could introduce in your system some other features like the tips you can read here: <a href="http://joaopedropereira.com/blog/2009/04/03/optimizacao-websites/" rel="nofollow">http://joaopedropereira.com/blog/2009/04/03/optimizacao-websites/</a> below the CSS title.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário em MySQL Data Types &#8211; Benchmarking The Perfect Database por João Pedro Pereira</title>
		<link>http://iceburn.info/mysql/mysql-data-types-benchmarking-the-perfect-database.html/comment-page-1#comment-429</link>
		<dc:creator>João Pedro Pereira</dc:creator>
		<pubDate>Sun, 14 Jun 2009 14:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=191#comment-429</guid>
		<description>Excelent article! Keep with the good work!</description>
		<content:encoded><![CDATA[<p>Excelent article! Keep with the good work!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
