LGF Technical Detour: Mysterious Lockup Solved

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

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.

Mangler of memes.

TwitterFacebook
LGF Pages
Recent Pages

live life like you have one
Pageshttp://www.youtube.com/watch?v=omkh yZ5iJoE
12 seconds ago
Views: 2 • Comments: 0
Tweets: 0 • Rating: 0

Daniel Ballard
Late Afternoon Light-Kalanchoe
4 hours, 5 minutes ago
Views: 64 • Comments: 0
Tweets: 0 • Rating: 2

MikeySDCA
Colin Powell Endorsed Same-Sex Marriage Once It Was Safe, More Evidence He's Hardly a Great Leader.
4 hours, 9 minutes ago
Views: 67 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Attachment Birthers
4 hours, 18 minutes ago
Views: 72 • Comments: 0
Tweets: 0 • Rating: 0

Eclectic Infidel
City College of San Francisco Budget Update
4 hours, 58 minutes ago
Views: 84 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
9 hours, 28 minutes ago
Views: 188 • Comments: 6
Tweets: 0 • Rating: 4

Aigle
National Geographic Traveler Veers Off Track
1 day, 9 hours ago
Views: 413 • Comments: 5
Tweets: 0 • Rating: -4

MichaelJ
Apple TV Slated to Debut in December?
1 day, 10 hours ago
Views: 207 • Comments: 0
Tweets: 0 • Rating: 1

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

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
1 day, 12 hours ago
Views: 494 • Comments: 2
Tweets: 0 • Rating: 4

 Frank says:

Now imagine a Moebius vortex inside a spherical constant, and you've got my cosmology. -- 1992