<?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: Update Delayed on Mysql and PHP</title>
	<atom:link href="http://informationideas.com/news/2008/12/11/update-delayed-on-mysql-and-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://informationideas.com/news/2008/12/11/update-delayed-on-mysql-and-php/</link>
	<description>Using technology to help your business</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:10:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: John Millington</title>
		<link>http://informationideas.com/news/2008/12/11/update-delayed-on-mysql-and-php/comment-page-1/#comment-31415</link>
		<dc:creator>John Millington</dc:creator>
		<pubDate>Thu, 15 Apr 2010 18:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://informationideas.com/news/?p=68#comment-31415</guid>
		<description>I think this is a great idea and I&#039;m gonna try it out.  Tired of seeing a bunch of stuff which doesn&#039;t really even matter to the user, on my show processlist</description>
		<content:encoded><![CDATA[<p>I think this is a great idea and I&#8217;m gonna try it out.  Tired of seeing a bunch of stuff which doesn&#8217;t really even matter to the user, on my show processlist</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frank</title>
		<link>http://informationideas.com/news/2008/12/11/update-delayed-on-mysql-and-php/comment-page-1/#comment-23433</link>
		<dc:creator>frank</dc:creator>
		<pubDate>Thu, 02 Apr 2009 18:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://informationideas.com/news/?p=68#comment-23433</guid>
		<description>No, this is to mimic a Mysql query queue by using apache threads as a queue.  Presumably, when the script processing is shutting down, all your output to the browser has been sent.  But the script will run the update_delayed function which will wait until mysql sees that the table is no longer being locked by any other higher priority queries.  Apache will then keep that process until that happens or if timeout setting has reached.  Therefore, it is also crucial to set_time_limit on your script to something higher than your maximum expected congestion time.  If not, your script might timeout while waiting for mysql and your update will never happen.

This is certainly a hack.  It would be much nicer if mysql implemented UPDATE DELAYED.</description>
		<content:encoded><![CDATA[<p>No, this is to mimic a Mysql query queue by using apache threads as a queue.  Presumably, when the script processing is shutting down, all your output to the browser has been sent.  But the script will run the update_delayed function which will wait until mysql sees that the table is no longer being locked by any other higher priority queries.  Apache will then keep that process until that happens or if timeout setting has reached.  Therefore, it is also crucial to set_time_limit on your script to something higher than your maximum expected congestion time.  If not, your script might timeout while waiting for mysql and your update will never happen.</p>
<p>This is certainly a hack.  It would be much nicer if mysql implemented UPDATE DELAYED.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Abbott</title>
		<link>http://informationideas.com/news/2008/12/11/update-delayed-on-mysql-and-php/comment-page-1/#comment-23428</link>
		<dc:creator>Chris Abbott</dc:creator>
		<pubDate>Thu, 02 Apr 2009 11:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://informationideas.com/news/?p=68#comment-23428</guid>
		<description>... and this doesn&#039;t wait MySQL to return a result (i.e. behaves exactly the same to PHP as &quot;insert delayed&quot;? If so, that&#039;s awfully clever.</description>
		<content:encoded><![CDATA[<p>&#8230; and this doesn&#8217;t wait MySQL to return a result (i.e. behaves exactly the same to PHP as &#8220;insert delayed&#8221;? If so, that&#8217;s awfully clever.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.070 seconds -->

