<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<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>WordPress &#8250; Support User Favorites: mikeo75</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support User Favorites: mikeo75</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 08:26:39 +0000</pubDate>

<item>
<title>rwl4 on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707/page/2#post-922511</link>
<pubDate>Fri, 12 Dec 2008 15:25:49 +0000</pubDate>
<dc:creator>rwl4</dc:creator>
<guid isPermaLink="false">922511@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I am having this exact problem right now. Any help would be MUCH appreciated.&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id) WHERE 1=1 AND wp_term_taxonomy.taxonomy = 'category' AND wp_term_taxonomy.term_id IN ('3', '74', '11', '7', '8', '9', '10', '14', '4', '5', '80', '69', '15', '13', '12', '77', '78', '76', '75', '79', '43', '44', '42', '41', '91', '51', '52', '50', '49', '92', '55', '56', '54', '53', '93', '59', '60', '58', '57', '94', '63', '64', '62', '61', '95', '25', '28', '26', '24', '86', '18', '19', '17', '16', '96', '21', '23', '22', '20', '97', '83', '84', '82', '81', '85', '72', '73', '71', '70', '87', '36', '35', '34', '33', '89', '31', '32', '30', '29', '88', '39', '40', '38', '37', '90') AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') LIMIT 0, 4;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;We have been in the process of moving a site with 40k posts from custom software to Wordpress and this is really causing a problem.
&#60;/p&#62;</description>
</item>
<item>
<title>powderboy on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707/page/2#post-876902</link>
<pubDate>Wed, 15 Oct 2008 17:31:04 +0000</pubDate>
<dc:creator>powderboy</dc:creator>
<guid isPermaLink="false">876902@http://wordpress.org/support/</guid>
<description>&#60;p&#62;What, exactly did you guys do to &#34;fix&#34; this?  Was it just indexing the taxonomy table? &#60;/p&#62;
&#60;p&#62;I'm getting killed right now on &#60;a href=&#34;http://www.bluehost.com.&#34; rel=&#34;nofollow&#34;&#62;www.bluehost.com.&#60;/a&#62; CPU exceeded errors and SQL queries in the 100+ CPU seconds range.
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-868433</link>
<pubDate>Fri, 03 Oct 2008 15:34:33 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">868433@http://wordpress.org/support/</guid>
<description>&#60;p&#62;That's exactly the same problem i'm having again.
&#60;/p&#62;</description>
</item>
<item>
<title>Niteblade on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-858826</link>
<pubDate>Mon, 22 Sep 2008 02:09:41 +0000</pubDate>
<dc:creator>Niteblade</dc:creator>
<guid isPermaLink="false">858826@http://wordpress.org/support/</guid>
<description>&#60;p&#62;The number one query eating my sever alive is:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;SELECT SQL_CALC_FOUND_ROWS  wp_posts.* FROM wp_posts  INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id)  WHERE 1=1  AND wp_term_taxonomy.taxonomy = &#38;#39;category&#38;#39;  AND wp_term_taxonomy.term_id IN (&#38;#39;11&#38;#39;)  AND wp_posts.post_type = &#38;#39;post&#38;#39; AND (wp_posts.post_status = &#38;#39;publish&#38;#39;) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 1;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Running Explain:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;id = 1&#60;br /&#62;
select_type = simple&#60;br /&#62;
type = const&#60;br /&#62;
possible_keys = PRIMARY,term_id_taxonomy,term_taxonomy_id&#60;br /&#62;
key = term_id_taxonomy&#60;br /&#62;
key_len = 106&#60;br /&#62;
ref = const,const&#60;br /&#62;
rows = 1&#60;br /&#62;
extra = Using index; Using temporary; Using filesort&#60;/p&#62;
&#60;p&#62;id = 1&#60;br /&#62;
select_type = simple&#60;br /&#62;
type = index&#60;br /&#62;
possible_keys = primary&#60;br /&#62;
key = primary&#60;br /&#62;
key_len = 16&#60;br /&#62;
ref = null&#60;br /&#62;
rows = 117780&#60;br /&#62;
extra = Using where; Using index&#60;/p&#62;
&#60;p&#62;id = 1&#60;br /&#62;
select_type = simple&#60;br /&#62;
type = ref&#60;br /&#62;
possible_keys = primary&#60;br /&#62;
key = primary&#60;br /&#62;
key_len = 132&#60;br /&#62;
ref = shop_shopus.wp_term_relationships.object_id,const,...&#60;br /&#62;
rows = 1&#60;br /&#62;
extra = Using where&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Massive amounts CPU power is used, and the dedicated server becomes sluggish for a few minutes until this query has passed ... like a kidney stone.
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-844758</link>
<pubDate>Thu, 04 Sep 2008 02:34:33 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">844758@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I've moved to a new host and no problems so far. It could have been my previous hosts mysql. I have no idea. I don't know mysql that well other than basic things.
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-843681</link>
<pubDate>Tue, 02 Sep 2008 21:18:17 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">843681@http://wordpress.org/support/</guid>
<description>&#60;p&#62;There is never an reason to lock tables on a simple select query.  Something must be doing inserts or updates.  Perhaps a logging module that is recording how often a query is viewed?
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-842838</link>
<pubDate>Mon, 01 Sep 2008 21:57:44 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">842838@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I fixed that problem, now i'm getting lock times from a different part of the database that queries the comments.
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-842009</link>
<pubDate>Sun, 31 Aug 2008 18:47:13 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">842009@http://wordpress.org/support/</guid>
<description>&#60;p&#62;&#38;gt; Query_time: 121 Lock_time: 78 Rows_sent: 1 Rows_examined: 1&#60;/p&#62;
&#60;p&#62;Is that in seconds?  There is no reason a query with so few rows involved to take that long.  There is something wrong with the mysql server that your host needs to address.&#60;/p&#62;
&#60;p&#62;Ok, there's one possibility that may not be their fault.  If something keeps locking tables or the entire database, it will block the query.  I see there are some pretty high lock times.  That's a very bad thing.  Remove whatever is doing the locks
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-841599</link>
<pubDate>Sun, 31 Aug 2008 03:48:26 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">841599@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Here's more and I don't even use a K2 theme at all yet it's calling for a K2 in some type of query.&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:50 2008&#60;br /&#62;
# Query_time: 121  Lock_time: 78  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:52 2008&#60;br /&#62;
# Query_time: 119  Lock_time: 74  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:52 2008&#60;br /&#62;
# Query_time: 127  Lock_time: 81  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:52 2008&#60;br /&#62;
# Query_time: 117  Lock_time: 72  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:52 2008&#60;br /&#62;
# Query_time: 122  Lock_time: 77  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:52 2008&#60;br /&#62;
# Query_time: 115  Lock_time: 70  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:52 2008&#60;br /&#62;
# Query_time: 120  Lock_time: 75  Rows_sent: 1  Rows_examined: 0&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.ID = 3836 AND wp_posts.post_type = 'post'  ORDER BY wp_posts.post_date DESC&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:53 2008&#60;br /&#62;
# Query_time: 115  Lock_time: 72  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:53 2008&#60;br /&#62;
# Query_time: 113  Lock_time: 71  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:53 2008&#60;br /&#62;
# Query_time: 112  Lock_time: 70  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:53 2008&#60;br /&#62;
# Query_time: 107  Lock_time: 65  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:53 2008&#60;br /&#62;
# Query_time: 108  Lock_time: 66  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:53 2008&#60;br /&#62;
# Query_time: 103  Lock_time: 61  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:53 2008&#60;br /&#62;
# Query_time: 116  Lock_time: 70  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:57 2008&#60;br /&#62;
# Query_time: 102  Lock_time: 91  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:58 2008&#60;br /&#62;
# Query_time: 97  Lock_time: 87  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:58 2008&#60;br /&#62;
# Query_time: 97  Lock_time: 87  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:58 2008&#60;br /&#62;
# Query_time: 90  Lock_time: 81  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:58 2008&#60;br /&#62;
# Query_time: 84  Lock_time: 75  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:58 2008&#60;br /&#62;
# Query_time: 82  Lock_time: 73  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:58 2008&#60;br /&#62;
# Query_time: 81  Lock_time: 72  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:58 2008&#60;br /&#62;
# Query_time: 67  Lock_time: 59  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:58 2008&#60;br /&#62;
# Query_time: 72  Lock_time: 64  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2installed' LIMIT 1&#60;/p&#62;
&#60;p&#62;# Sat Aug 30 21:24:58 2008&#60;br /&#62;
# Query_time: 41  Lock_time: 36  Rows_sent: 1  Rows_examined: 1&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT option_value FROM wp_options WHERE option_name = 'k2deliciousname' LIMIT 1
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-840880</link>
<pubDate>Fri, 29 Aug 2008 22:20:13 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">840880@http://wordpress.org/support/</guid>
<description>&#60;p&#62;ogre here are some more from today that have an absurd query time.&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:03:45 2008&#60;br /&#62;
# Query_time: 10  Lock_time: 6  Rows_sent: 1  Rows_examined: 0&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.ID = 2259 AND wp_posts.post_type = 'post'  ORDER BY wp_posts.post_date DESC&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:03:47 2008&#60;br /&#62;
# Query_time: 6  Lock_time: 0  Rows_sent: 12  Rows_examined: 24&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT * FROM wp_comments WHERE comment_post_ID = 3687 AND comment_approved = '1' ORDER BY comment_date&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:03:53 2008&#60;br /&#62;
# Query_time: 4  Lock_time: 0  Rows_sent: 1  Rows_examined: 2882&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT p.* FROM wp_posts AS p  WHERE p.post_date &#38;lt; '2007-09-17 20:00:35' AND p.post_type = 'post' AND p.post_status = 'publish'  ORDER BY p.post_date DESC LIMIT 1&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:13:02 2008&#60;br /&#62;
# Query_time: 35  Lock_time: 0  Rows_sent: 3  Rows_examined: 15&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag') AND tr.object_id IN (3208) ORDER BY t.name ASC&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:13:02 2008&#60;br /&#62;
# Query_time: 4  Lock_time: 0  Rows_sent: 2  Rows_examined: 10&#60;br /&#62;
SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag') AND tr.object_id IN (3039) ORDER BY t.name ASC&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:13:27 2008&#60;br /&#62;
# Query_time: 16  Lock_time: 0  Rows_sent: 1  Rows_examined: 1325&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT p.* FROM wp_posts AS p  WHERE p.post_date &#38;lt; '2008-04-05 17:18:33' AND p.post_type = 'post' AND p.post_status = 'publish'  ORDER BY p.post_date DESC LIMIT 1&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:13:42 2008&#60;br /&#62;
# Query_time: 39  Lock_time: 0  Rows_sent: 1  Rows_examined: 1968&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT p.* FROM wp_posts AS p  WHERE p.post_date &#38;lt; '2008-01-21 15:19:41' AND p.post_type = 'post' AND p.post_status = 'publish'  ORDER BY p.post_date DESC LIMIT 1&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:13:42 2008&#60;br /&#62;
# Query_time: 39  Lock_time: 0  Rows_sent: 1  Rows_examined: 2137&#60;br /&#62;
SELECT p.* FROM wp_posts AS p  WHERE p.post_date &#38;lt; '2007-12-28 15:00:43' AND p.post_type = 'post' AND p.post_status = 'publish'  ORDER BY p.post_date DESC LIMIT 1&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:13:42 2008&#60;br /&#62;
# Query_time: 29  Lock_time: 0  Rows_sent: 1  Rows_examined: 4047&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT p.* FROM wp_posts AS p  WHERE p.post_date &#38;lt; '2007-04-14 18:26:11' AND p.post_type = 'post' AND p.post_status = 'publish'  ORDER BY p.post_date DESC LIMIT 1&#60;/p&#62;
&#60;p&#62;# Fri Aug 29 16:13:43 2008&#60;br /&#62;
# Query_time: 45  Lock_time: 0  Rows_sent: 15  Rows_examined: 1164&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT SQL_CALC_FOUND_ROWS  wp_posts.* FROM wp_posts  INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id)  WHERE 1=1  AND wp_term_taxonomy.taxonomy = 'category'  AND wp_term_taxonomy.term_id IN ('29')  AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 15
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-839310</link>
<pubDate>Thu, 28 Aug 2008 03:32:13 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">839310@http://wordpress.org/support/</guid>
<description>&#60;p&#62;# Wed Aug 27 08:07:02 2008&#60;br /&#62;
# Query_time: 7  Lock_time: 0  Rows_sent: 1  Rows_examined: 4&#60;br /&#62;
use ianbethu_wdold;&#60;br /&#62;
SELECT *  , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) &#38;gt;= NOW(), 1,0) as recently_updated   FROM wp_links  INNER JOIN wp_term_relationships AS tr ON (wp_links.link_id = tr.object_id) INNER JOIN wp_term_taxonomy as tt ON tt.term_taxonomy_id = tr.term_taxonomy_id WHERE 1=1 AND link_visible = 'Y'  AND ( tt.term_id = 2 ) AND taxonomy = 'link_category'    ORDER BY link_name ASC&#60;/p&#62;
&#60;p&#62;# Wed Aug 27 08:26:42 2008&#60;br /&#62;
# Query_time: 19  Lock_time: 17  Rows_sent: 17  Rows_examined: 17&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
DESC wp_comments&#60;/p&#62;
&#60;p&#62;# Wed Aug 27 08:26:42 2008&#60;br /&#62;
# Query_time: 19  Lock_time: 7  Rows_sent: 17  Rows_examined: 17&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
DESC wp_comments&#60;/p&#62;
&#60;p&#62;# Wed Aug 27 08:36:41 2008&#60;br /&#62;
# Query_time: 24  Lock_time: 0  Rows_sent: 0  Rows_examined: 0&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
UPDATE wp_options SET option_value = '1219847777' WHERE option_name = 'gltr_last_connection_time'&#60;/p&#62;
&#60;p&#62;# Wed Aug 27 09:22:20 2008&#60;br /&#62;
# Query_time: 18  Lock_time: 0  Rows_sent: 16  Rows_examined: 64&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT *  , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) &#38;gt;= NOW(), 1,0) as recently_updated   FROM wp_links  INNER JOIN wp_term_relationships AS tr ON (wp_links.link_id = tr.object_id) INNER JOIN wp_term_taxonomy as tt ON tt.term_taxonomy_id = tr.term_taxonomy_id WHERE 1=1 AND link_visible = 'Y'  AND ( tt.term_id = 88 ) AND taxonomy = 'link_category'    ORDER BY link_name ASC&#60;/p&#62;
&#60;p&#62;# Wed Aug 27 09:22:20 2008&#60;br /&#62;
# Query_time: 11  Lock_time: 0  Rows_sent: 5  Rows_examined: 25&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag') AND tr.object_id IN (1844) ORDER BY t.name ASC&#60;/p&#62;
&#60;p&#62;# Wed Aug 27 09:25:27 2008&#60;br /&#62;
# Query_time: 7  Lock_time: 0  Rows_sent: 4  Rows_examined: 20&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag') AND tr.object_id IN (2629) ORDER BY t.name ASC&#60;/p&#62;
&#60;p&#62;# Wed Aug 27 09:25:27 2008&#60;br /&#62;
# Query_time: 6  Lock_time: 0  Rows_sent: 1  Rows_examined: 4&#60;br /&#62;
use ianbethu_wdold;&#60;br /&#62;
SELECT *  , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) &#38;gt;= NOW(), 1,0) as recently_updated   FROM wp_links  INNER JOIN wp_term_relationships AS tr ON (wp_links.link_id = tr.object_id) INNER JOIN wp_term_taxonomy as tt ON tt.term_taxonomy_id = tr.term_taxonomy_id WHERE 1=1 AND link_visible = 'Y'  AND ( tt.term_id = 2 ) AND taxonomy = 'link_category'    ORDER BY link_name ASC&#60;/p&#62;
&#60;p&#62;# Wed Aug 27 09:25:27 2008&#60;br /&#62;
# Query_time: 6  Lock_time: 0  Rows_sent: 1  Rows_examined: 4&#60;br /&#62;
use ianbethu_wrdp1;&#60;br /&#62;
SELECT SQL_CALC_FOUND_ROWS  wp_posts.* FROM wp_posts  INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id)  WHERE 1=1  AND wp_term_taxonomy.taxonomy = 'category'  AND wp_term_taxonomy.term_id IN ('858')  AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 15
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-838260</link>
<pubDate>Tue, 26 Aug 2008 21:46:30 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">838260@http://wordpress.org/support/</guid>
<description>&#60;p&#62;beisbolct, what are the queries that are causing problems?
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-835450</link>
<pubDate>Sat, 23 Aug 2008 02:00:01 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">835450@http://wordpress.org/support/</guid>
<description>&#60;p&#62;It sucks too because all of mysql slow queries that's causing wordpress to use too much cpu on my site is coming from it.
&#60;/p&#62;</description>
</item>
<item>
<title>mikeo75 on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-831308</link>
<pubDate>Sun, 17 Aug 2008 19:30:00 +0000</pubDate>
<dc:creator>mikeo75</dc:creator>
<guid isPermaLink="false">831308@http://wordpress.org/support/</guid>
<description>&#60;p&#62;No idea, can't get an answer from anyone :(
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-830376</link>
<pubDate>Sat, 16 Aug 2008 05:14:00 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">830376@http://wordpress.org/support/</guid>
<description>&#60;p&#62;So how do we fix the taxonomy.php file to work correctly?
&#60;/p&#62;</description>
</item>
<item>
<title>mikeo75 on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-828846</link>
<pubDate>Thu, 14 Aug 2008 05:57:16 +0000</pubDate>
<dc:creator>mikeo75</dc:creator>
<guid isPermaLink="false">828846@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Actually, I think it's Taxonomy.php that is causing this problem.&#60;/p&#62;
&#60;p&#62;Here is what my host found:&#60;/p&#62;
&#60;p&#62;Unfortunately, I won't be able to pin point where this query is coming from since wordpress uses variables but you can perform searches for certain key words that might at least lower the amount of scripts. I did a quick search that looks for one of the inner joins lines&#60;/p&#62;
&#60;p&#62;INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id&#60;/p&#62;
&#60;p&#62;You can run this from within ssh&#60;/p&#62;
&#60;p&#62;egrep -ir &#34;INNER JOIN .* AS tt ON t.term_id = tt.term_id&#34; /home/43539/domains/&#60;/p&#62;
&#60;p&#62;This looks to be retuning files with part of this query,&#60;/p&#62;
&#60;p&#62;/home/43539/domains/popcritics.com/html/wp-includes/taxonomy.php&#60;br /&#62;
/home/43539/domains/popcritics.com/html/wp-content/plugins/simple-tags/2.3/simple-tags.client.php&#60;br /&#62;
/home/43539/domains/popcritics.com/html/wp-content/plugins/simple-tags/2.5/simple-tags.client.php&#60;br /&#62;
/home/43539/domains/popcritics.com/html/wp-content/plugins/simple-tags/2.5/inc/simple-tags.admin.php
&#60;/p&#62;</description>
</item>
<item>
<title>mikeo75 on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-828818</link>
<pubDate>Thu, 14 Aug 2008 05:04:59 +0000</pubDate>
<dc:creator>mikeo75</dc:creator>
<guid isPermaLink="false">828818@http://wordpress.org/support/</guid>
<description>&#60;p&#62;The plugin appears to be Similar Posts, which sucks, because that's a pretty nice feature. Not sure how to make it better or not.&#60;/p&#62;
&#60;p&#62;Dalton, my server at Media Temple has this in their control panel, so I'm not sure your VPS will have it.
&#60;/p&#62;</description>
</item>
<item>
<title>daltonrooney on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-827357</link>
<pubDate>Tue, 12 Aug 2008 14:39:02 +0000</pubDate>
<dc:creator>daltonrooney</dc:creator>
<guid isPermaLink="false">827357@http://wordpress.org/support/</guid>
<description>&#60;p&#62;mikeo75: I am wondering if you can educate me a little bit on how you logged this query? I am interested in tuning the performance of my site and finding out where there are bottlenecks. &#60;/p&#62;
&#60;p&#62;In your original post, you wrote: &#60;/p&#62;
&#60;p&#62;Created 06:55 PM 07/28/2008&#60;br /&#62;
### 74 Queries&#60;br /&#62;
### Total time: 154, Average time: 2.08108108108108&#60;br /&#62;
### Taking 2 to 3 seconds to complete&#60;br /&#62;
### Rows analyzed 55576 - 56375&#60;/p&#62;
&#60;p&#62;etc., etc.&#60;/p&#62;
&#60;p&#62;I have shell access and am about to move to a VPS. Will I be able to do logging like this myself?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Dalton
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-818448</link>
<pubDate>Thu, 31 Jul 2008 19:43:15 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">818448@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Mikeo I was wondering if it was that too since that plugin uses a plugin library to run.
&#60;/p&#62;</description>
</item>
<item>
<title>mikeo75 on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-818046</link>
<pubDate>Thu, 31 Jul 2008 12:57:58 +0000</pubDate>
<dc:creator>mikeo75</dc:creator>
<guid isPermaLink="false">818046@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm wondering if it's similar posts? I'll try to find out.
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-817404</link>
<pubDate>Wed, 30 Jul 2008 19:06:40 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">817404@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm curious about which plugin is executing this query.  The author needs to be educated a small amount on the dangers of querying on unindexed columns.  It would be very easy for the author to add the indexing as part of the installation process.&#60;/p&#62;
&#60;p&#62;I'm also interested in the results of my suggestions.
&#60;/p&#62;</description>
</item>
<item>
<title>mikeo75 on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-817172</link>
<pubDate>Wed, 30 Jul 2008 13:34:49 +0000</pubDate>
<dc:creator>mikeo75</dc:creator>
<guid isPermaLink="false">817172@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Good stuff Ogre, I appreciate the help...I'm going to try and run the EXPLAIN thing on this query and see what happens.
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-816734</link>
<pubDate>Wed, 30 Jul 2008 01:05:36 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">816734@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Oops, no quotes around the word in the parens.  My bad.
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-816731</link>
<pubDate>Wed, 30 Jul 2008 01:00:10 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">816731@http://wordpress.org/support/</guid>
<description>&#60;p&#62;To add an index via phpmyadmin, select the table you need to modify, find the the column name in the list, look on the far right for the 'action' that adds an index and click it.  On my system with a very small table it's done almost instantly.  If you have a lot of data in the table it might take a few seconds.&#60;/p&#62;
&#60;p&#62;From within a mysql shell, you can add the table with this command:&#60;/p&#62;
&#60;p&#62;ALTER TABLE wp_term_taxonomy ADD INDEX ( 'taxonomy' );
&#60;/p&#62;</description>
</item>
<item>
<title>beisbolct on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-816726</link>
<pubDate>Wed, 30 Jul 2008 00:52:05 +0000</pubDate>
<dc:creator>beisbolct</dc:creator>
<guid isPermaLink="false">816726@http://wordpress.org/support/</guid>
<description>&#60;p&#62;how do you do the index...&#60;/p&#62;
&#60;p&#62;index wp_taxonomy.taxonomy&#60;/p&#62;
&#60;p&#62;i am having the same problem on mine as well.
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-816678</link>
<pubDate>Tue, 29 Jul 2008 23:45:50 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">816678@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Some explanation on how to optimize a query.&#60;/p&#62;
&#60;p&#62;Take the query giving you problems and run it with the word 'EXPLAIN' prepended, e.g. &#34;EXPLAIN SELECT t.*,tt.* FROM ...&#34;.&#60;/p&#62;
&#60;p&#62;What you get is a table explaining how the query was handled.  Look at the column called &#34;key&#34;.  If any of them have &#34;null&#34;, that's bad.  Also look at the column called &#34;rows&#34;.  A big number is bad.  Several rows with big numbers are very bad.  Multiply all the values in &#34;rows&#34; and that's the number of rows your query had to look at to come up with the result.  A badly written query could have looked at millions of rows (it can actually be more rows than you have in your database because the same row could be examined multiple times!).&#60;/p&#62;
&#60;p&#62;The trick (and this is were a good DBA earns his big bucks) is to reduce the number of rows looked at without affecting the query.  First off, get rid of the &#34;null&#34; in the &#34;key&#34; column by indexing the taxonomy column.  After that, it's a matter of rewriting the query, which is a bit beyond my skillset (I'm just a linux system admin) for a query this complicated.
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-816649</link>
<pubDate>Tue, 29 Jul 2008 23:02:01 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">816649@http://wordpress.org/support/</guid>
<description>&#60;p&#62;You should get a slight improvement if you index wp_taxonomy.taxonomy.  If you have phpmyadmin, adding this index is simple.&#60;/p&#62;
&#60;p&#62;If you can get &#34;slow query logging&#34; enabled hand have access to the log, it should point out where you can make improvements.  The taxonomy column was the query item I could spot that was not indexed properly.
&#60;/p&#62;</description>
</item>
<item>
<title>mikeo75 on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-816442</link>
<pubDate>Tue, 29 Jul 2008 19:40:47 +0000</pubDate>
<dc:creator>mikeo75</dc:creator>
<guid isPermaLink="false">816442@http://wordpress.org/support/</guid>
<description>&#60;p&#62;This is what I see for query caching:&#60;/p&#62;
&#60;p&#62;# query cache&#60;br /&#62;
query_cache_limit	= 1048576&#60;br /&#62;
query_cache_size        = 12M&#60;br /&#62;
query_cache_type        = 1&#60;/p&#62;
&#60;p&#62;Also, changing that query you said, it will just get wiped out in the next release I assume.&#60;/p&#62;
&#60;p&#62;Not even sure what file that is in :)
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-816386</link>
<pubDate>Tue, 29 Jul 2008 18:27:35 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">816386@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Ask your host to enable query caching.  It can make a HUGE difference.
&#60;/p&#62;</description>
</item>
<item>
<title>Ogre on "MySQL Slow query problem"</title>
<link>http://wordpress.org/support/topic/192707#post-816384</link>
<pubDate>Tue, 29 Jul 2008 18:26:06 +0000</pubDate>
<dc:creator>Ogre</dc:creator>
<guid isPermaLink="false">816384@http://wordpress.org/support/</guid>
<description>&#60;p&#62;You must have a lot of different slugs and/or categories.  That's the only reason I can see for the query to take so long.  I ran the query on my server, but because of the limited amount of data it took no time to run:  &#34;Showing rows 0 - 3 (4 total, Query took 0.0002 sec)&#34;.&#60;/p&#62;
&#60;p&#62;You might change this:&#60;/p&#62;
&#60;p&#62;WHERE tt.taxonomy IN ( 'post_tag' )&#60;/p&#62;
&#60;p&#62;To&#60;/p&#62;
&#60;p&#62;WHERE tt.taxonomy='post_tag'&#60;/p&#62;
&#60;p&#62;And see if you get any improvement.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
