LGF Technical Detour: Mysterious Lockup Solved

Charles Johnsonfollow me on twitter
Fri May 18, 2007 at 1:10 pm PDT • Views: 239

Why didn’t anybody tell me about these table locking issues (nooooo!) in MySQL?

This is actually good news, because the overwhelmingly geeky page linked above helped me to solve an extremely annoying problem that has been causing sporadic, mysterious lockups at LGF since the database makeover. Who knew that there was a major contention issue when using the UPDATE statement on a table that’s also processing lots of concurrent SELECTs? Who, I ask you?

What this means in English is that if I edited one of my existing posts and hit the ‘Save Changes’ button, at a time when lots of people were loading the front page, the database would launch itself into an infinite loop of table locking, and suddenly nobody could access the posts at all. Server meltdown usually ensued, followed by unhappy hamsters demanding raises. And we were offline for anywhere from 10 minutes to an hour, while visitors saw the dreaded message, “MDB2 Error: connect failed.” Bummer all around, dude.

Problem is now solved, thanks to that indecipherable MySQL page above. (For the geeks, the quick fix is to add the ‘LOW_PRIORITY’ attribute to the offending UPDATE statement. Heh.)

Advertisement

169 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Ignorance is blix.

TwitterFacebook
LGF Pages
Recent Pages

researchok
Proposed Mosques Spark Opposition in Some U.S. Communities: 'Don't look at me just as a Muslim, look at me as an American'
17 minutes ago
Views: 21 • Comments: 0
Tweets: 0 • Rating: 0

MikeySDCA
How an 11-Year-Old Survived the Houla Massacre - the Atlantic Wire
58 minutes ago
Views: 33 • Comments: 0
Tweets: 0 • Rating: 1

Randall Gross
Fairbanks Militia Leader Compared to Cult Leaders
1 hour, 42 minutes ago
Views: 68 • Comments: 0
Tweets: 0 • Rating: 1

Haywood Jabloeme
SWATting the Ericksons
17 hours, 57 minutes ago
Views: 200 • Comments: 2
Tweets: 0 • Rating: -3

Mostly sane, most of the time.
So wake up and notice already
18 hours, 5 minutes ago
Views: 124 • Comments: 0
Tweets: 0 • Rating: 1

Daniel Ballard
Late Afternoon Light-Kalanchoe
1 day, 22 hours ago
Views: 214 • Comments: 0
Tweets: 0 • Rating: 5

Eclectic Infidel
City College of San Francisco Budget Update
1 day, 23 hours ago
Views: 253 • Comments: 0
Tweets: 0 • Rating: 1

Aigle
National Geographic Traveler Veers Off Track
3 days, 4 hours ago
Views: 877 • Comments: 25
Tweets: 26 • Rating: -6

MichaelJ
Apple TV Slated to Debut in December?
3 days, 5 hours ago
Views: 315 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
3 days, 6 hours ago
Views: 387 • Comments: 1
Tweets: 0 • Rating: 4

 Frank says:

The gorilla is on an island,eats bananas and has a good time all day long. He plays out there in the bushes. Some Americans find out about the gorilla and they hear how BIG he is - you know.They're very impressed with the size of the beast. So they catch the gorilla & they stick him in a boat & bring him back to the US. They show him off to everybody & make a bunch of money. ...Then they kill him ! -- The song King Kong.1968 tour Wisconsin.