<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Downtime</title>
	<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/</link>
	<description>Random samplings from a universe of ideas.</description>
	<pubDate>Fri, 21 Nov 2008 21:59:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Bob Munck</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28837</link>
		<dc:creator>Bob Munck</dc:creator>
		<pubDate>Tue, 12 Jun 2007 01:48:01 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28837</guid>
		<description>Ignore all these suggestions!  I've been in the field for forty years, and you had it exactly right at the beginning:&lt;blockquote&gt;&lt;strong&gt;Maybe it will fix itself.&lt;/strong&gt;&lt;/blockquote&gt;That has always worked for me, though some of the worse FORTRAN II bugs didn't fix themselves until all the hardware had become obsolete.</description>
		<content:encoded><![CDATA[<p>Ignore all these suggestions!  I&#8217;ve been in the field for forty years, and you had it exactly right at the beginning:<br />
<blockquote><strong>Maybe it will fix itself.</strong></p></blockquote>
<p>That has always worked for me, though some of the worse FORTRAN II bugs didn&#8217;t fix themselves until all the hardware had become obsolete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dylan</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28840</link>
		<dc:creator>Dylan</dc:creator>
		<pubDate>Mon, 11 Jun 2007 23:34:37 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28840</guid>
		<description>Check your usage, in terms of number of pageviews - i found (and have started reading) this blog due to an article on slashdot, which commands a hefty readership. I can't recall if you were directly linked but I still found you - others would have too.

It may be you're just another victim of your own popularity and you need to host your blog somewhere that allows you to use some more resources - although i must say that optimisation can often stave off such moves for some time, a well thought out database can use a fraction of the resources.

I did see a good blog article on this from a bloke running a large south-african web application, but buggered if I can find it again :(</description>
		<content:encoded><![CDATA[<p>Check your usage, in terms of number of pageviews - i found (and have started reading) this blog due to an article on slashdot, which commands a hefty readership. I can&#8217;t recall if you were directly linked but I still found you - others would have too.</p>
<p>It may be you&#8217;re just another victim of your own popularity and you need to host your blog somewhere that allows you to use some more resources - although i must say that optimisation can often stave off such moves for some time, a well thought out database can use a fraction of the resources.</p>
<p>I did see a good blog article on this from a bloke running a large south-african web application, but buggered if I can find it again <img src='http://blogs.discovermagazine.com/cosmicvariance/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xantox</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28839</link>
		<dc:creator>xantox</dc:creator>
		<pubDate>Mon, 11 Jun 2007 20:15:29 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28839</guid>
		<description>To optimize, you may also try some of the following:

â€¢ if possible, upgrade to the latest WP version or at least 2.1;
â€¢ if your host allows, enable the &lt;a href="http://www.techiecorner.com/45/turn-on-mysql-query-cache-to-speed-up-mysql-query-performance/" rel="nofollow"&gt;mySQL query cache&lt;/a&gt; (and possibly also use &lt;a href="http://txfx.net/files/wordpress/post-query-accelerator.phps " rel="nofollow"&gt;this plugin&lt;/a&gt;)
â€¢ enable the Wordpress caching system by adding this line to wp-config.php:
  define( 'ENABLE_CACHE', true );
(and make sure that wp-content/cache is writable or has 777 permission).
â€¢ For a stronger cache, try &lt;a href="http://mnm.uib.es/gallir/wp-cache-2/" rel="nofollow"&gt;wp-cache2&lt;/a&gt; which staticizes the whole site.</description>
		<content:encoded><![CDATA[<p>To optimize, you may also try some of the following:</p>
<p>â€¢ if possible, upgrade to the latest WP version or at least 2.1;<br />
â€¢ if your host allows, enable the <a href="http://www.techiecorner.com/45/turn-on-mysql-query-cache-to-speed-up-mysql-query-performance/" rel="nofollow">mySQL query cache</a> (and possibly also use <a href="http://txfx.net/files/wordpress/post-query-accelerator.phps " rel="nofollow">this plugin</a>)<br />
â€¢ enable the Wordpress caching system by adding this line to wp-config.php:<br />
  define( &#8216;ENABLE_CACHE&#8217;, true );<br />
(and make sure that wp-content/cache is writable or has 777 permission).<br />
â€¢ For a stronger cache, try <a href="http://mnm.uib.es/gallir/wp-cache-2/" rel="nofollow">wp-cache2</a> which staticizes the whole site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cosmic Variance account is suspended on Bluehost.com &#171; Bob Dudesky</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28838</link>
		<dc:creator>Cosmic Variance account is suspended on Bluehost.com &#171; Bob Dudesky</dc:creator>
		<pubDate>Mon, 11 Jun 2007 16:30:09 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28838</guid>
		<description>[...] like some of the comments to Downtime might be [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] like some of the comments to Downtime might be [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xantox</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28836</link>
		<dc:creator>xantox</dc:creator>
		<pubDate>Mon, 11 Jun 2007 12:36:39 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28836</guid>
		<description>I believe that you just have a lot of visitors and that your host has a strict quota requirement, better suited to simpler or low-traffic sites. The solution is probably to ask them increase the quota, or change host.</description>
		<content:encoded><![CDATA[<p>I believe that you just have a lot of visitors and that your host has a strict quota requirement, better suited to simpler or low-traffic sites. The solution is probably to ask them increase the quota, or change host.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Nichols</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28835</link>
		<dc:creator>Alex Nichols</dc:creator>
		<pubDate>Mon, 11 Jun 2007 05:59:44 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28835</guid>
		<description>Compacting the database would normally improve its efficiency a lot.
I wonder if the software you use permanently deletes unapproved comments, or simply leaves them in there flagged?

The Query is checking the flag 'comment_approved'  as part of a boolean evaluation with 3 conditions.  This is a very CPU intensive operation.

If for example you are receiving lots of unwanted comments and these remain in the database it might slow it down to the point where it exceeds the providers quota.  Possibly something that could be exploited in denial of service attacks.</description>
		<content:encoded><![CDATA[<p>Compacting the database would normally improve its efficiency a lot.<br />
I wonder if the software you use permanently deletes unapproved comments, or simply leaves them in there flagged?</p>
<p>The Query is checking the flag &#8216;comment_approved&#8217;  as part of a boolean evaluation with 3 conditions.  This is a very CPU intensive operation.</p>
<p>If for example you are receiving lots of unwanted comments and these remain in the database it might slow it down to the point where it exceeds the providers quota.  Possibly something that could be exploited in denial of service attacks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28834</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sun, 10 Jun 2007 22:42:39 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28834</guid>
		<description>Perhaps your hosting service would be willing to look at some of the SQL queries for you and check if the right fields are indexed in the database? After all, it is their server time that you are using if the database isn't structured well.</description>
		<content:encoded><![CDATA[<p>Perhaps your hosting service would be willing to look at some of the SQL queries for you and check if the right fields are indexed in the database? After all, it is their server time that you are using if the database isn&#8217;t structured well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28833</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Sun, 10 Jun 2007 22:09:57 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28833</guid>
		<description>Updating the "latest comments" plugin (which led to the above error) doesn't seem to have helped, nor has disabling it entirely.  I've even optimized the databases, for what it's worth.  But the problem persists.</description>
		<content:encoded><![CDATA[<p>Updating the &#8220;latest comments&#8221; plugin (which led to the above error) doesn&#8217;t seem to have helped, nor has disabling it entirely.  I&#8217;ve even optimized the databases, for what it&#8217;s worth.  But the problem persists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28832</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Sun, 10 Jun 2007 21:52:54 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28832</guid>
		<description>One more thing that could be slowing this down is the lack of any date restriction; it's retrieving all non-pingback, non-trackback comments since the beginning of time.   Given the location as you describe it (to generate the "lastest sidebar" list), if you have any control over the query you may want to tweak that.    Then again I may be biased by working in an environment where all queries are required to have a closed daterange due to the extreme volume of data, so that may actually not help all that much here.</description>
		<content:encoded><![CDATA[<p>One more thing that could be slowing this down is the lack of any date restriction; it&#8217;s retrieving all non-pingback, non-trackback comments since the beginning of time.   Given the location as you describe it (to generate the &#8220;lastest sidebar&#8221; list), if you have any control over the query you may want to tweak that.    Then again I may be biased by working in an environment where all queries are required to have a closed daterange due to the extreme volume of data, so that may actually not help all that much here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Knop</title>
		<link>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28831</link>
		<dc:creator>Rob Knop</dc:creator>
		<pubDate>Sun, 10 Jun 2007 14:18:31 +0000</pubDate>
		<guid>http://blogs.discovermagazine.com/cosmicvariance/2007/06/09/downtime/#comment-28831</guid>
		<description>When I was actively using wordpress, I think it did keep all of the messages that got blocked as spam.  I think you can configure it not to do this.  One thing that does happen is that your comment tables will get *huge* with spam.  That not only uses up disk space, but will start to slow down queries like this one.

I would hesitate to give you any actual sql to do anything about this here, but you might be able to check your wordpress config to see if you can do anything about it there.

What I did myself was go in every so often and delete all the spam; it's a quick SQL command, and I *am* a database manager in addition to all those other things....

-Rob</description>
		<content:encoded><![CDATA[<p>When I was actively using wordpress, I think it did keep all of the messages that got blocked as spam.  I think you can configure it not to do this.  One thing that does happen is that your comment tables will get *huge* with spam.  That not only uses up disk space, but will start to slow down queries like this one.</p>
<p>I would hesitate to give you any actual sql to do anything about this here, but you might be able to check your wordpress config to see if you can do anything about it there.</p>
<p>What I did myself was go in every so often and delete all the spam; it&#8217;s a quick SQL command, and I *am* a database manager in addition to all those other things&#8230;.</p>
<p>-Rob</p>
]]></content:encoded>
	</item>
</channel>
</rss>
