Hey everyone, I've just been on holiday for 2 weeks and 1 of my sites was taken down by dreamhost because of severe mysql slowness. This is a major problem, I'm pretty sure it's a problem with ubercart RC4 am so i'm hoping it's already been fixed in RC5, if not then this is a major 'show stopper'. The site is pretty new and not getting much traffic.
Here's the email i got from dreamhost, I hope this is easy for someone to fix.
I'd really appreciate some help with this as the client is not very impressed 
Cheers,
matt
__________________________
Hello,
I'm writing you about your database, *****. The database was causing
some severe
load on the mysql server, it seems from some very slow queries, which I
tried to fix but they are still taking way too long to finish. Disabling
your database drops the load from 100 to 2 on the mysql server, so
unfortunately it is your database. I'm afraid your mysql needs have
outgrown shared hosting and you will need to update to a DreamHost MySQL
PS, VPS or dedicated solution:
https://panel.dreamhost.com/index.cgi?tree=vserver.provision&
http://dreamhost.com/dedicated-hosting.html
You can write me at justin@dreamhost.com about this issue. I've had to
disable this database until this issue can be addressed. I can provide a
backup of the database, such as to your ftp directory, if you wish. Here
are the bad queries that were in the mysql slow log, please note the
"query_time" in seconds and the rows_examined.
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 99607 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 1 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 102840 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 4 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 43327 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 9 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 99273 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 1 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 99186 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 17 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 47966 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 27 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 99659 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 1 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 102679 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 14 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 86801 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 10 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 86502 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 11 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 14812 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 31 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 14835 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 31 WHERE aid =
1 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 79611 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 20 WHERE aid =
11 ORDER BY po.ordering, ao.name;
# User@Host: ****[****] @ [***.***.***.*]
# Query_time: 14464 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT po.nid, po.oid, po.cost, po.price, po.weight, po.ordering,
ao.name, ao.aid FROM dr_uc_product_options AS po LEFT JOIN
dr_uc_attribute_options AS ao ON po.oid = ao.oid AND nid = 28 WHERE aid =
1 ORDER BY po.ordering, ao.name;
+---------+-------------+------------------------------+-----------------
+---------+--------+-------------------+---------------------------------
---------------------------------------------------------------------+
| Id | User | Host | db
| Command | Time | State | Info
|
+---------+-------------+------------------------------+-----------------
+---------+--------+-------------------+---------------------------------
---------------------------------------------------------------------+
| 2126539 | **** | ***.***.***.*:35910 | *****
| Query | 127138 | Sending data | SELECT COUNT(*) FROM
(dr_uc_product_options AS po1 LEFT JOIN dr_uc_attribute_options AS ao1 ON
po1.o |
| 2193571 | **** | ***.***.***.*:60814 | *****
| Query | 102773 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2193995 | **** | ***.***.***.*:51594 | *****
| Query | 102612 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2195077 | **** | ***.***.***.*:56428 | *****
| Query | 102250 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2201672 | **** | ***.***.***.*:47003 | *****
| Query | 99592 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2201820 | **** | ***.***.***.*:47044 | *****
| Query | 99540 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2202583 | **** | ***.***.***.*:39634 | *****
| Query | 99206 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2202782 | **** | ***.***.***.*:53918 | *****
| Query | 99119 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2202801 | **** | ***.***.***.*:32841 | *****
| Query | 99114 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2207631 | **** | ***.***.***.*:56378 | *****
| Query | 97229 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2207654 | **** | ***.***.***.*:38426 | *****
| Query | 97221 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2207826 | **** | ***.***.***.*:56247 | *****
| Query | 97155 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2235742 | **** | ***.***.***.*:39702 | *****
| Query | 86734 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2236732 | **** | ***.***.***.*:33087 | *****
| Query | 86435 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2258301 | **** | ***.***.***.*:59820 | *****
| Query | 79685 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2258811 | **** | ***.***.***.*:53270 | *****
| Query | 79544 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2351470 | **** | ***.***.***.*:56010 | *****
| Query | 53099 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2352877 | **** | ***.***.***.*:36578 | *****
| Query | 52719 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2366270 | **** | ***.***.***.*:45993 | *****
| Query | 47899 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2366406 | **** | ***.***.***.*:33460 | *****
| Query | 47847 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2366580 | **** | ***.***.***.*:58320 | *****
| Query | 47783 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2367037 | **** | ***.***.***.*:38689 | *****
| Query | 47600 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2367445 | **** | ***.***.***.*:53190 | *****
| Query | 47442 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2368440 | **** | ***.***.***.*:34500 | *****
| Query | 47058 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2378337 | **** | ***.***.***.*:55306 | *****
| Query | 43325 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2378369 | **** | ***.***.***.*:59616 | *****
| Query | 43311 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2378477 | **** | ***.***.***.*:36844 | *****
| Query | 43265 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2378487 | **** | ***.***.***.*:50583 | *****
| Query | 43260 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2451378 | **** | ***.***.***.*:46641 | *****
| Query | 18141 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2461147 | **** | ***.***.***.*:59220 | *****
| Query | 14768 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2461250 | **** | ***.***.***.*:40009 | *****
| Query | 14745 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2462260 | **** | ***.***.***.*:38359 | *****
| Query | 14430 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2462358 | **** | ***.***.***.*:35547 | *****
| Query | 14397 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2462461 | **** | ***.***.***.*:60575 | *****
| Query | 14362 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2462792 | **** | ***.***.***.*:55042 | *****
| Query | 14269 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
| 2468294 | **** | ***.***.***.*:33347 | *****
| Query | 12474 | Waiting for table | SELECT po.nid, po.oid, po.cost,
po.price, po.weight, po.ordering, ao.name, ao.aid FROM dr_uc_product |
Thanks!
Justin







Joined: 11/29/2007