ADVERTISEMENT
Advertise Here

Huckleberries Online

Recent Comments Active, But …

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 …
Seven comments on this post so far. Add yours!
  • 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!

« Back to Huckleberries Online

You must be logged in to post comments.
Please create a profile or log in here.


About this blog

D.F. Oliveria is a columnist and blogger for The Spokesman-Review. Huckleberries Online was judged the best 2008 Idaho newspaper blog by the Idaho Press Club. And the best 2007 news blog in the Pacific Northwest by the Society for Professional Journalist. Print Huckleberries is a past winner of the Herb Caen Memorial Column contest by the National Association of Newspaper Columnists. The Readership Institute of Northwestern University cited this blog as a good example of online community journalism.

Find DFO on Facebook

DFO on Twitter

Betsy Russell on Twitter

HBO newsmakers Twitter list

Take this week's news quiz ›
Search this blog
Subscribe to this blog
ADVERTISEMENT
Advertise Here