Jump to content

SQL causing massive server load


somedude

Recommended Posts

My host is suspending my account due to our site causing too much load on the server. Support has given us a series of sql statements that are apparently the cause of the problem. This is one of about a dozen, they all refer to this particular delete statement.

 

| 459 | ouruser_Dbadmin | localhost | ouruser_masterDB | Query | 0 | Locked | DELETE FROM this_table WHERE this_id = '11712659715853' |

 

 

Can anybody decipher this? What does 459 mean? What does Locked mean? Any help would immmmensely appreciated.

 

 

Link to comment
Share on other sites

Do you have an index on this_id ?  I don't know what the other columns mean, but that statement should run ultra-fast with an index, but terribly slow without one.  If it was waiting on a locked table then it shouldn't cause load, so I doubt that's the case.  Depending on what they mean by "load".

 

Do you know if the statement is running a long time, or if the problem is that you have lots of statements waiting to be executed?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.