Problem with "Add a Default Value" Locking Up
1. I ran the original sql on the host control panel and it dies in about 117 seconds with an error code of 1317 and it indicates that the query was terminated....
2. I made this up to see what happens if the Left join is eliminated and I get a response in about 1 second or less......
SELECT DISTINCT ps3_products.ProductID, COALESCE(ps3_productoptions.GroupingID,ps3_products.ProductID) AS GroupingID FROM ps3_products, ps3_productoptions where ps3_productoptions.ProductID = ps3_products.ProductID and ps3_productoptions.GroupingID = (SELECT GroupingID FROM ps3_productoptions WHERE ProductID = 7502 LIMIT 1) OR ps3_products.ProductID = 7502
3. I ran the sql you provided me and It also takes over 100 seconds to run the query...
SELECT DISTINCT ps3_products.ProductID, COALESCE(ps3_productoptions.GroupingID,ps3_products.ProductID) AS GroupingID FROM ps3_products LEFT OUTER JOIN ps3_productoptions ON ps3_productoptions.ProductID = ps3_products.ProductID WHERE ps3_products.ProductID = 7502 OR ps3_productoptions.GroupingID = (SELECT GroupingID FROM ps3_productoptions WHERE ProductID = 7502 LIMIT 1)
After running this sql the service finished it without error and did not terminate but did give me a warning....
I am also working with bluehost's technical support group who are the best to see if the problem is on their side... they reviewed memory allocations, CPU time and things are perfect on the host.... their technical sql guys are looking into this also...