Hello,
I'm having an issue with our website. A few of the queries on the query analyzer are taking up to/over an hour to complete (if they complete at all). This has caused our mySQL database server to lock up and frequently make our website unavailable. Does anyone know why these queries might be taking so long?
I just recently upgraded from WPMU 2.6 to 2.9.1 and deactivated all of our plugins, so it should be running smoothly. I was able to login to the WPMU dashboard last night, but now I can't even do that. Everytime I reboot the SQL container, it crashes within seconds again. Below is a list of the queries:
### 1744 Queries
### Total time: 457899, Average time: 262.556766055046
### Taking 7 to 4032 seconds to complete
### Rows analyzed 232 - 7390510
SELECT option_name, option_value FROM wp_XXX_options WHERE autoload = 'XXX';
SELECT option_name, option_value FROM wp_1_options WHERE autoload = 'yes';
### 339 Queries
### Total time: 439903, Average time: 1297.64896755162
### Taking 71 to 3684 seconds to complete
### Rows analyzed 0 - 0
UPDATE wp_XXX_options
SET option_value
= 'XXX' WHERE option_name
= 'XXX';
UPDATE wp_1_options
SET option_value
= '1267560342' WHERE option_name
= '_transient_doing_cron';
### 447 Queries
### Total time: 249068, Average time: 557.199105145414
### Taking 9 to 3969 seconds to complete
### Rows analyzed 1965597 - 7390510
SELECT option_value FROM wp_XXX_options WHERE option_name = 'XXX' LIMIT XXX;
SELECT option_value FROM wp_1_options WHERE option_name = 'embed_autourls' LIMIT 1;
### 6 Queries
### Total time: 52, Average time: 8.66666666666667
### Taking 5 , 5 , 6 , 7 , 8 , 21 seconds to complete
### Rows analyzed 4706242, 4706300, 5145379, 7390510, 7390510 and 7390510
use dbXXX_wpmu;
SELECT option_name, option_value FROM wp_XXX_options WHERE autoload = 'XXX';
use db30295_wpmu;
SELECT option_name, option_value FROM wp_1_options WHERE autoload = 'yes';
### 2 Queries
### Total time: 9, Average time: 4.5
### Taking 2 , 7 seconds to complete
### Rows analyzed 10522 and 10522
SELECT SQL_CALC_FOUND_ROWS wp_XXX_posts.* FROM wp_XXX_posts WHERE XXX=XXX AND wp_XXX_posts.post_type = 'XXX' AND (wp_XXX_posts.post_status = 'XXX') ORDER BY wp_XXX_posts.post_date DESC LIMIT XXX, XXX;
SELECT SQL_CALC_FOUND_ROWS wp_1_posts.* FROM wp_1_posts WHERE 1=1 AND wp_1_posts.post_type = 'post' AND (wp_1_posts.post_status = 'publish') ORDER BY wp_1_posts.post_date DESC LIMIT 0, 10;