close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

URGENT: DB Issue with host (PS4.5)

Thread began 3/22/2011 4:39 pm by robert329616 | Last modified 3/23/2011 2:28 pm by Jason Byrnes | 936 views | 5 replies |

robert329616

URGENT: DB Issue with host (PS4.5)

I just received an email from my host GoDaddy informing me that they have disabled my database is being over utilized. Here is part of the email that they have sent to me:

We have disabled your database to return the server to normal usage. To re-enable your database, you will need to correct the following query:

Problematic query:
SELECT *, coalesce((select ps4_productoptions.GroupingID from ps4_productoptions WHERE ps4_productoptions.ProductID = ps4_products.ProductID limit 1),ps4_products.ProductID) AS GroupingID FROM ps4_products WHERE ProductLive = 1 AND (ProductStartDate IS NULL OR ProductStartDate <= CURDATE()) AND (ProductEndDate IS NULL OR ProductEndDate >= CURDATE()) AND ProductID IN (SELECT ProductID FROM ps4_productcategories WHERE (CategoryID = 4)) GROUP BY GroupingID ORDER BY ProductName

EXPLAIN:
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY ps4_products ALL 1013 Using where; Using temporary; Using filesort
3 DEPENDENT SUBQUERY ps4_productcategories ALL 844 Using where
2 DEPENDENT SUBQUERY ps4_productoptions ALL 6070 Using where

This query examines 5189680040 rows, which is unacceptable in shared hosting. Access will reinstated upon request.

Any help would be greatly appreciated as the site is completely down and I am losing customers.

Thanks.

Regards,
Robert

Sign in to reply to this post

Jason ByrnesWebAssist

how many products do you have set up and how many options for each?

judging by the number of records being searched, it sounds like you have a lot of advanced options set up. you should evaluate whether some of them can be simple options instead of advanced options.

Sign in to reply to this post

robert329616

Jason,
In my product area I have 2 Items with multiple options:
4 types of shafts; each has 7 thread sizes and 2 tip options
Anvil JB Cue - 3 types; each has 7 weights 7 colors and 2 tip options
Another JB cue just has 7 weights as options. The rest are really simple.
Does that seem like a lot of options that could be causing the issue?

The site is babysproshop.com. Should I be using simple options for these?

Rob

Sign in to reply to this post

Jason ByrnesWebAssist

That does not sound like a lot of options that should cause this problem.

It could be that there are orphaned Options in the options table, or orphaned products in the products table.


How many records are there in each of those tables?


Your product results page only shows 17 products.

each advanced option you create will effectively add another product record. that's about 60 more records for the product combination's you describe which is nowhere near the 5189680040 that go daddy is claiming.



Simple options should be used for any options that do not need to have a unique description, SKU or price.

Sign in to reply to this post

robert329616

I have 159 records in Options
1,013 records in Products
6,070 records in product options
How would I determine what an orphan is and what would be the best way to get rid of it?

Also, do these numbers sound like it would cause the issue?

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...