LGF Technical Detour: Mysterious Lockup Solved

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

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? Account Settings 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

► LGF Hits

► Resources

► Never Forget

► Statistics

► 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.

There is no hell. There is only France.

TwitterFacebook
LGF Pages
Recent Pages

Bob Dillon
Chemist Applies Google Software to Molecules
3 minutes ago
Views: 3 • Comments: 0
Tweets: 0 • Rating: 0

Daniel Ballard
Meme: What Photographers Actually Do
17 minutes ago
Views: 24 • Comments: 0
Tweets: 0 • Rating: 0

Aigle
Judi Rudoren Enters the Scene: Tweets or Tea Leaves?
35 minutes ago
Views: 19 • Comments: 0
Tweets: 0 • Rating: 0

Aigle
New Online Newspaper in Israel
37 minutes ago
Views: 24 • Comments: 0
Tweets: 0 • Rating: 0

Daniel Ballard
The Boy Who Played With Fusion
1 hour, 24 minutes ago
Views: 77 • Comments: 0
Tweets: 0 • Rating: 2

wrenchwench
Mexico Issues Travel Warning for Los United Estates
1 hour, 32 minutes ago
Views: 76 • Comments: 0
Tweets: 1 • Rating: 1

Channeling Confucius
6 Terrifying User Agreements You've Probably Accepted
2 hours, 27 minutes ago
Views: 89 • Comments: 0
Tweets: 0 • Rating: 1

Turnabout is Fair Play
The Muslim Brotherhood's Post-Mubarak Anti-Americanism
2 hours, 41 minutes ago
Views: 78 • Comments: 0
Tweets: 0 • Rating: 1

MichaelJ
Daring Fireball: Walter Isaacson's 'Steve Jobs'
2 hours, 56 minutes ago
Views: 85 • Comments: 0
Tweets: 0 • Rating: 0

Bob Dillon
Radiation Generates Cancer Stem Cells From Less Aggressive Breast Cancer Cells
4 hours, 19 minutes ago
Views: 84 • Comments: 0
Tweets: 0 • Rating: 0

 Frank says:

Yeah, I tell them to change the channel if they see some guy in a brown suit with a telephone number at the bottom of the screen asking for money. -- on being asked by Tipper Gore if there was anything on the TV he _didn't_ allow his kids to watch ...