<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tiger Technologies Blog</title>
	<atom:link href="http://blog.tigertech.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tigertech.net</link>
	<description>Behind the scenes at tigertech.net</description>
	<lastBuildDate>Fri, 12 Mar 2010 08:08:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Network slowness for some customers (resolved)</title>
		<link>http://blog.tigertech.net/posts/network-slowness-for-some-customers-resolved/</link>
		<comments>http://blog.tigertech.net/posts/network-slowness-for-some-customers-resolved/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 08:08:52 +0000</pubDate>
		<dc:creator>Robert Mathews</dc:creator>
				<category><![CDATA[System Status]]></category>
		<category><![CDATA[all servers]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=1097</guid>
		<description><![CDATA[Between 7:00 and 7:45 PM Pacific time Thursday night (March 11), we received two reports of slow or nonexistent network connections to sites on our servers.
Our automated monitoring systems didn&#8217;t detect any general problems, so the majority of customers were certainly unaffected &#8212; but we suspect that one of the &#8220;Internet backbones&#8221; between the affected [...]]]></description>
			<content:encoded><![CDATA[<p>Between 7:00 and 7:45 PM Pacific time Thursday night (March 11), we received two reports of slow or nonexistent network connections to sites on our servers.</p>
<p>Our automated monitoring systems didn&#8217;t detect any general problems, so the majority of customers were certainly unaffected &#8212; but we suspect that one of the &#8220;Internet backbones&#8221; between the affected customers and our data center had high packet loss during that period.</p>
<p>Both customers reported that the problem resolved itself by 7:45, and we haven&#8217;t received similar reports since, so there does not appear to be be an ongoing problem. We&#8217;ll continue to monitor it closely.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/network-slowness-for-some-customers-resolved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preventing runaway MySQL queries</title>
		<link>http://blog.tigertech.net/posts/preventing-mysql-runaway-queries/</link>
		<comments>http://blog.tigertech.net/posts/preventing-mysql-runaway-queries/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 00:48:19 +0000</pubDate>
		<dc:creator>Robert Mathews</dc:creator>
				<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=1089</guid>
		<description><![CDATA[If you use a MySQL database with large tables, it&#8217;s possible to accidentally run queries that try to sort millions of rows (usually through some kind of programming error, such as an &#8220;unconstrained table join&#8221;).
Those runaway queries can slow down the MySQL server for many minutes on end, causing performance problems.
To prevent the worst of [...]]]></description>
			<content:encoded><![CDATA[<p>If you use a <a href="http://support.tigertech.net/mysql">MySQL database</a> with large tables, it&#8217;s possible to accidentally run queries that try to sort millions of rows (usually through some kind of programming error, such as an &#8220;unconstrained table join&#8221;).</p>
<p>Those runaway queries can slow down the MySQL server for many minutes on end, causing performance problems.</p>
<p>To prevent the worst of that, we&#8217;ve set the <a href=" http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_max_join_size">max_join_size</a> setting to 1,000,000 on our MySQL servers.</p>
<p><span id="more-1089"></span></p>
<p>This shouldn&#8217;t affect any normal queries, but queries that attempt to sort more than a million rows will now return this error:</p>
<p><tt>ERROR 1104 (42000): The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay</tt></p>
<p>If you have any questions, please <a href="http://support.tigertech.net/contact">contact our support staff</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/preventing-mysql-runaway-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use WP Super Cache for WordPress speed, not W3 Total Cache</title>
		<link>http://blog.tigertech.net/posts/use-wp-super-cache/</link>
		<comments>http://blog.tigertech.net/posts/use-wp-super-cache/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 18:33:10 +0000</pubDate>
		<dc:creator>Robert Mathews</dc:creator>
				<category><![CDATA[Tales From the Support Team]]></category>
		<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=1068</guid>
		<description><![CDATA[We keep coming across WordPress customer sites that have hurt their performance by switching from the &#8220;WP Super Cache&#8221; plugin we recommend to a newer plugin named &#8220;W3 Total Cache&#8221;. Unfortunately, their site often ends up being far slower after switching to W3 Total Cache.
If you care about the performance of your site, please stick [...]]]></description>
			<content:encoded><![CDATA[<p>We keep coming across WordPress customer sites that have hurt their performance by switching from the &#8220;<a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a>&#8221; plugin <a href="http://support.tigertech.net/wordpress-performance">we recommend</a> to a newer plugin named &#8220;<a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a>&#8221;. Unfortunately, their site often ends up being far slower after switching to W3 Total Cache.</p>
<p>If you care about the performance of your site, please stick with WP Super Cache unless you have a very good reason to switch. It works, and it works well.</p>
<p>Some people tell us that W3 Total Cache works just as well if it&#8217;s properly configured, and they may well be right &#8212; but it seems like it&#8217;s difficult to configure properly. Our experience is showing that it&#8217;s easy to get wrong, and performance ends up suffering. WP Super Cache makes it easy to get great performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/use-wp-super-cache/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Brief maintenance on Calculon server (completed)</title>
		<link>http://blog.tigertech.net/posts/brief-maintenance-on-calculon-server/</link>
		<comments>http://blog.tigertech.net/posts/brief-maintenance-on-calculon-server/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 03:47:58 +0000</pubDate>
		<dc:creator>Robert Mathews</dc:creator>
				<category><![CDATA[System Status]]></category>
		<category><![CDATA[calculon]]></category>
		<category><![CDATA[maintenance]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=1062</guid>
		<description><![CDATA[The “calculon” Web server will be restarted at 11 PM Pacific time tonight (February 19). This will cause a five-minute interruption of Web and e-mail service for customers on that server.
Other servers will not be affected, and incoming mail will only be delayed, not lost.
We apologize for the problem and for the short notice: the [...]]]></description>
			<content:encoded><![CDATA[<p>The “<a href="http://blog.tigertech.net/posts/which-server/">calculon</a>” Web server will be restarted at 11 PM Pacific time tonight (February 19). This will cause a five-minute interruption of Web and e-mail service for customers on that server.</p>
<p>Other servers will not be affected, and incoming mail will only be delayed, not lost.</p>
<p>We apologize for the problem and for the short notice: the restart is necessary to replace a disk in the RAID array.</p>
<p><em>Update 11:03 PM Pacific time: The restart was completed with less than 3 minutes &#8220;downtime&#8221;.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/brief-maintenance-on-calculon-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bender server load problem 2010-02-18 (resolved)</title>
		<link>http://blog.tigertech.net/posts/bender-load-20100218/</link>
		<comments>http://blog.tigertech.net/posts/bender-load-20100218/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 19:28:29 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[System Status]]></category>
		<category><![CDATA[bender]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=1053</guid>
		<description><![CDATA[The “bender” Web server experienced intermittently high load between about 7:40 and 10:15 AM Pacific time this morning, February 18. This resulted in slow or even inaccessible Web sites on that server. (Some e-mail was also delayed before being properly delivered.) Other servers were not affected.
This server had similar high load symptoms (but much more [...]]]></description>
			<content:encoded><![CDATA[<p>The “<a href="http://blog.tigertech.net/posts/which-server/">bender</a>” Web server experienced intermittently high load between about 7:40 and 10:15 AM Pacific time this morning, February 18. This resulted in slow or even inaccessible Web sites on that server. (Some e-mail was also delayed before being properly delivered.) Other servers were not affected.</p>
<p>This server had similar high load symptoms (but much more briefly) earlier this week. We took some steps to reduce the load then, but it appears those weren&#8217;t sufficient. We&#8217;re now taking much stronger action to ensure that this does not happen again.</p>
<p>We sincerely apologize to customers affected by this problem. We don&#8217;t consider it normal or acceptable, and we will make sure this isn&#8217;t a recurring issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/bender-load-20100218/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>President&#8217;s Day 2010 holiday hours</title>
		<link>http://blog.tigertech.net/posts/presidents-day-2010-holiday-hours/</link>
		<comments>http://blog.tigertech.net/posts/presidents-day-2010-holiday-hours/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 16:00:11 +0000</pubDate>
		<dc:creator>Robert Mathews</dc:creator>
				<category><![CDATA[Business Announcements]]></category>
		<category><![CDATA[holiday hours]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=1022</guid>
		<description><![CDATA[Our business offices will be closed on Monday, February 15 to observe the US legal holiday. As always, we’ll provide same-day support for time-sensitive issues via our ticket and e-mail systems. However, questions that aren’t time-sensitive (including most billing matters) may not be answered until the next day, and telephone support (via callbacks) will be [...]]]></description>
			<content:encoded><![CDATA[<p>Our business offices will be closed on Monday, February 15 to observe the US legal holiday. As always, we’ll provide same-day support for time-sensitive issues via <a href="http://support.tigertech.net/contact">our ticket and e-mail systems</a>. However, questions that aren’t time-sensitive (including most billing matters) may not be answered until the next day, and telephone support (via callbacks) will be available only for urgent problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/presidents-day-2010-holiday-hours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.2.6 and Joomla</title>
		<link>http://blog.tigertech.net/posts/php-5-2-6-and-joomla/</link>
		<comments>http://blog.tigertech.net/posts/php-5-2-6-and-joomla/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 00:34:42 +0000</pubDate>
		<dc:creator>Robert Mathews</dc:creator>
				<category><![CDATA[System Status]]></category>
		<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server updates]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=1028</guid>
		<description><![CDATA[After upgrading our systems to PHP 5.2.6, we received reports of an incompatibility with Joomla. Some URLs do not work when Joomla is configured to use &#8220;Search Engine Friendly URLs&#8221;, but to not have &#8220;Use Apache mod_rewrite&#8221; turned on.
We&#8217;ve investigated this, and it&#8217;s caused by Joomla assuming that PHP has a bug that makes it [...]]]></description>
			<content:encoded><![CDATA[<p>After <a href="/posts/linux-update-2010-02/">upgrading our systems to PHP 5.2.6</a>, we received reports of an incompatibility with Joomla. Some URLs do not work when Joomla is configured to use &#8220;Search Engine Friendly URLs&#8221;, but to not have &#8220;Use Apache mod_rewrite&#8221; turned on.</p>
<p>We&#8217;ve investigated this, and it&#8217;s caused by Joomla assuming that PHP has a bug that makes it work incorrectly, when in fact it&#8217;s supposed to work differently (and is clearly documented to work differently). Older versions of PHP had this bug, but the new version doesn&#8217;t.</p>
<p>To help our customers work around this, we&#8217;ve &#8220;patched&#8221; PHP to intentionally reintroduce the old bug for now, thus keeping it &#8220;compatible&#8221; with Joomla. If you were having trouble with Joomla&#8217;s &#8220;Search Engine Friendly URLs&#8221;, it should be fixed.</p>
<p>We&#8217;ll provide more technical details (and a more robust long-term solution) in the near future.</p>
<p><em>Update: We&#8217;ve also <a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&#038;tracker_item_id=17147">reported this problem to the Joomla developers and suggested a solution</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/php-5-2-6-and-joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scheduled maintenance for Linux updates (completed)</title>
		<link>http://blog.tigertech.net/posts/linux-update-2010-02/</link>
		<comments>http://blog.tigertech.net/posts/linux-update-2010-02/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 18:52:04 +0000</pubDate>
		<dc:creator>Robert Mathews</dc:creator>
				<category><![CDATA[System Status]]></category>
		<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[all servers]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=992</guid>
		<description><![CDATA[Due to software updates on our servers, Web hosting customers will experience about seven minutes of scheduled maintenance downtime between 11 PM and 1 AM Pacific time starting on one of the following nights, depending on which server your site is on:

Thursday, February 4 (servers beginning with the letter &#8220;L&#8221;, such as &#8220;lrrr&#8221;)
Friday, February 5 [...]]]></description>
			<content:encoded><![CDATA[<p>Due to software updates on our servers, Web hosting customers will experience about seven minutes of scheduled maintenance downtime between 11 PM and 1 AM Pacific time starting on one of the following nights, depending on <a href="/posts/which-server/">which server your site is on</a>:</p>
<ul>
<li>Thursday, February 4 (servers beginning with the letter &#8220;L&#8221;, such as &#8220;lrrr&#8221;)</li>
<li>Friday, February 5 (all other servers beginning with letters &#8220;F-Z&#8221;, such as &#8220;farnsworth&#8221;)</li>
<li>Saturday, February 6 (servers beginning with letters &#8220;A-E&#8221;, such as &#8220;amy&#8221;)</li>
</ul>
<p><span id="more-992"></span></p>
<h3>What&#8217;s changing?</h3>
<p>Our servers use the <a href="http://www.debian.org/">Debian GNU/Linux</a> operating system, which is updated with new versions every couple of years (just like Windows or Mac OS X). Last year, Debian was updated to <a href="http://www.debian.org/releases/lenny/">version 5.0</a> (aka &#8220;lenny&#8221;), and since then, we&#8217;ve been running a &#8220;mixed&#8221; system. Some programs on each server have already been updated, but other programs still need updating.</p>
<p>We&#8217;re now finalizing the upgrade. This will make sure we can continue to use Debian security updates (they&#8217;ll soon be provided only for version 5.0) to keep our systems secure, and will give customers access to newer versions of some programs. Among the many updates:</p>
<ul>
<li>The Apache Web server will be upgraded from version 2.2.3 to 2.2.9</li>
<li>The MySQL database server will be upgraded from 5.0.32 to 5.0.51a</li>
<li>The PHP scripting language will be upgraded from 5.2.0 to 5.2.6</li>
<li>The Perl scripting language will be upgraded from 5.8.8 to 5.10.0</li>
<li>The default version of the Python scripting language will change from 2.4.4 to 2.5.2</li>
</ul>
<p>Sharp-eyed readers will notice that these are not the newest, &#8220;cutting-edge&#8221; versions available. This is intentional; the philosophy of Debian Linux (and of our hosting platform) is to only use extremely well-tested, tried-and-true versions. We strongly value stability over new features, within reason, because that improves reliability for the majority of our customers.</p>
<p>However, we also want to emphasize that these versions also <a href="/posts/security-updates/">include security updates from later versions</a> &#8212; for example, PHP includes the features from 5.2.6, but also includes security fixes from versions 5.2.7 to 5.2.12.</p>
<h3>Why the downtime?</h3>
<p>Unfortunately, a side-effect of the upgrade is about 7 total minutes of downtime.</p>
<p>We always strive to avoid any downtime, but in this case, it&#8217;s unavoidable: There&#8217;s a four-minute outage while the server is restarted for the new kernel version, and three outages of about a minute each while Apache, PHP, and MySQL are upgraded. During those three periods, we disable access to the Web server to prevent strange technical error messages appearing on your visitor&#8217;s screens.</p>
<p>Incoming mail may be delayed for a few minutes during the maintenance, but as always, no mail will be lost: it will just be queued and delivered a few minutes later.</p>
<h3>Questions?</h3>
<p>Please <a href="http://support.tigertech.net/contact">contact our support team</a> if you have any questions. We appreciate your business!</p>
<p><em>Update: The maintenance was completed as scheduled.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/linux-update-2010-02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Super Cache and FeedBurner</title>
		<link>http://blog.tigertech.net/posts/wp-super-cache-and-feedburner/</link>
		<comments>http://blog.tigertech.net/posts/wp-super-cache-and-feedburner/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 23:56:15 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Tales From the Support Team]]></category>
		<category><![CDATA[Useful Tips]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=980</guid>
		<description><![CDATA[We&#8217;ve got a lot of customers running WordPress, and we definitely recommend running WP Super Cache to improve performance. It can help dramatically!
But recently we&#8217;ve seen a number of our customers getting hammered by a ton of requests from FeedBurner. Usually the request is of this form:
/somepost?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=SomeCampaignString
We&#8217;ve also seen FeedBurner going crazy and making thousands [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve got a lot of customers running WordPress, and we definitely <a href="http://support.tigertech.net/wordpress-performance">recommend running WP Super Cache to improve performance</a>. It can help dramatically!</p>
<p>But recently we&#8217;ve seen a number of our customers getting hammered by a ton of requests from FeedBurner. Usually the request is of this form:</p>
<p>/somepost?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=SomeCampaignString</p>
<p>We&#8217;ve also seen FeedBurner going crazy and making thousands of duplicate requests. One of the sites we host has gotten 45,000 simple status requests (HTTP &#8220;HEAD&#8221; requests) from FeedBurner today, for no good reason that we can see.</p>
<p><span id="more-980"></span></p>
<p>Unfortunately, the default rules of WP Super Cache prevent it from caching any request with a query that contains an equal sign. So all of these requests are being unnecessarily run freshly each time, rather than being served from the cache.</p>
<p>There&#8217;s an easy fix to this. Open your Web site&#8217;s .htaccess file. Look for the section of lines for WP Super Cache, and find the line which tests <kbd>%{QUERY_STRING}</kbd>. Insert this new line of text immediately above the existing line:</p>
<p><code>RewriteCond %{QUERY_STRING} ^utm_source=(feedburner|twitterfeed) [OR]</code></p>
<p>The new line (ending with <kbd>[OR]</kbd>) must come before the existing <kbd>%{QUERY_STRING}</kbd> line. After inserting, the two lines should look exactly like this:</p>
<p><code>RewriteCond %{QUERY_STRING} ^utm_source=(feedburner|twitterfeed) [OR]<br />
RewriteCond %{QUERY_STRING} !.*=.*</code></p>
<p>There are two very similar blocks right next to each other in the .htaccess file. Be sure to add the new line to the same place in each block.</p>
<p>That&#8217;s the only change you&#8217;ll have to make! WP Super Cache will now be able to cache requests for normal pages that come from FeedBurner or Twitterfeed. If your Web site was being abused by FeedBurner (or Twitterfeed), you should see a definite improvement.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/wp-super-cache-and-feedburner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Super-fast database writes with INSERT DELAYED</title>
		<link>http://blog.tigertech.net/posts/insert-delayed/</link>
		<comments>http://blog.tigertech.net/posts/insert-delayed/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 00:20:13 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Tech Corner]]></category>
		<category><![CDATA[Useful Tips]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://blog.tigertech.net/?p=973</guid>
		<description><![CDATA[Many Web sites write data to a database. Usually, the data absolutely must be properly saved, so the default way of adding records (using an SQL &#8220;INSERT&#8221; statement) ensures that the data is permanently stored on the server&#8217;s disks. Doing that takes a relatively long time in computer terms &#8212; it&#8217;s much slower than most [...]]]></description>
			<content:encoded><![CDATA[<p>Many Web sites write data to a database. Usually, the data absolutely must be properly saved, so the default way of adding records (using an SQL &#8220;INSERT&#8221; statement) ensures that the data is permanently stored on the server&#8217;s disks. Doing that takes a relatively long time in computer terms &#8212; it&#8217;s much slower than most things computers do.</p>
<p>In some cases, you might be storing data that&#8217;s not quite so important. And if it means your application can run much faster, you might be willing to risk a very small chance of data loss. That&#8217;s where MySQL&#8217;s &#8220;INSERT DELAYED&#8221; statement, which works with MyISAM table types (but not InnoDB tables), can be useful. (Tables are created as type MyISAM by default, so most tables are eligible to benefit from this tip.)</p>
<p><span id="more-973"></span></p>
<p>Adding the word &#8220;DELAYED&#8221; to your statement tells MySQL to remember the data to be added and return immediately to your application. MySQL will then write the data as soon as the database isn&#8217;t busy. This lets your insertion happen (effectively) immediately, and reduces the load on the database (and server). Using this technique can give your application a huge performance gain.</p>
<p>Since the record is not written immediately, there is a very small chance that the data will be lost before it&#8217;s written to the disk. However, the odds of this happening are very small. It would only happen if MySQL crashed before it had a moment of idle time to write out the record, if the server lost power, or if some similar unexpected event happened.</p>
<p>Using &#8220;INSERT DELAYED&#8221; is recommended for applications that do not absolutely depend upon records being immediately written. Any data which is only referred to at a later time (rather than on-demand) or in a summary fashion is a good candidate for using &#8220;INSERT DELAYED&#8221;. Some examples are logging the IP address of each visitor, or tracking ad impressions for each page viewed on your Web site. Be sure to read the <a href="http://dev.mysql.com/doc/refman/5.0/en/insert-delayed.html">official documentation</a> for full details and additional considerations.</p>
<p>If you want to use &#8220;INSERT DELAYED&#8221;, first check the documentation to see if your application already supports it. If it does not, you&#8217;d need to modify the application. If you have any questions about whether a particular database table is a good candidate for using &#8220;INSERT DELAYED&#8221;, just ask us and we&#8217;ll take a look.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tigertech.net/posts/insert-delayed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.247 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-18 18:56:49 -->
