You can still see all the latest comments by clicking on “Recent Comments” in the right rail (although it doesn’t show the latest 5 out front as it did before and will again tomorrow morning). Blogmeister Ryan will test drive some new code here in the morning. He provides the technical explanation for what’s going on inside (click “recent comments”) in a 5:26 p.m. post. Hat Tip to Blogmeister Ryan for being all over this. I’ll take a lash or 2 for not bringing it to his attention earlier …
Cabbage Boy on May 12 at 3:40 p.m.
I think you just killed the blog.
Ryan Pitts on May 12 at 6:43 p.m.
Until we can put the fix in place tomorrow morning, you’ll probably be pretty frustrated if you hit the “Latest comments” link. I’ll repost the explanation I originally put here:
http://www.spokesman.com/blogs/hbo/2009/may/12/nicka-flush-your-current-blogware/
––––––––
OK, I believe we should have a fix. I’ll need to wait until morning to apply it, as it’s a nontrivial change to our code, and you don’t do that when the server admin is out of cell phone contact for the next 3 hours ;)
For now, I’ll leave the “Latest Comments” box in the sidebar disabled, as that should keep the regular blog and blogpost pages from triggering the problem. This wasn’t a traffic-related issue at all, it was an inefficient database query.
(For the truly nerdy out there, what I found this morning was two queries that took 18 seconds each to execute - this function was being triggered every 2 minutes to fill out the “recent comments” list in the sidebar box and the “latest comments” thread. The new code collapses that function into one 94ms query. Heh.)
Once the change is in place, we’ll need to run a quick update script to re-save all existing comments. While that’s running, you may notice a few quirks in comment counts and the “recent comments” lists, but then everything should be good to go.
Cindy_H on May 12 at 9:21 p.m.
I like it when Ryan talks nerdy :-)
mia on May 12 at 10:31 p.m.
Thank you Ryan!