Performance Improvement Discovered
Thu Dec 02 2004


No this isn't an ad for Viagra - lol - I discovered a bijou issue in the front page code, which bodes well for other areas as I come across them. Basically I had misunderstood the caching of Smarty templates and although the front page was delivering its content from a cached database query, it was still running the query behind the scenes (and then ignoring the result if the cache was valid) which meant that any time the front page was loaded the Top Ten Diaries query was being run.... That's a very CPU intensive query and had the potential to slow the machine down.

Fortunately, the machine is beefy enough that it coped. But having made the change I haven't seen the load go above 1.5 all day, and I've sometimes seen it as low as 0.4. Previously it tended to hover around 2.5 to 3.5 and sometimes hit 25.

There's still some significant development time required to get the best performance out of it (its all running on a now very old perl system) but this will buy a chunk of time for me :)
9 Comments
  • From:
    NewChapter (Legacy)
    On:
    Thu Dec 02 2004
    Does that have anything to do with the reason why I kept getting "Could not connect to the data base" errors alot yesterday?

    Just wondering is all....
  • From:
    Causingchaos (Legacy)
    On:
    Thu Dec 02 2004
    *pats you on the back* That's sooooo technical... but I'm assuming that it's good now and bad before. Keep up the good work.

    Is there anyway that the diary owners could be counted automatically as friends of themselves to get into their own friend's only entries with out having to to through the entire accept a friend procedure for themselves? (I know it's off topic... I have ADHD though.)
  • From:
    Eliezer (Legacy)
    On:
    Thu Dec 02 2004
    Any chance we could get the Search feature up and running now that we have more horsepower?

    I miss being able to search for keywords in my diary to find my specific old entries.
  • From:
    Alifelessordinary (Legacy)
    On:
    Thu Dec 02 2004
    Say wha now???

  • From:
    Causingchaos (Legacy)
    On:
    Thu Dec 02 2004
    Ok I tried to read that again... I am not going to be the only non-techy dd person. So I worked on translating it into English.

    I got to bijou and wasn't sure if you were talking about the french for jewel or if you were talking about hamtaro. You have a machine that apparantly lifts weights or something that also runs covert operations while looking like it's working. You took away the machines power to do the covert stuff (which means as you know it will have a tantrum this weekend and quit working it's real job). But now it works like it should have been working.
  • From:
    LadyMargaret (Legacy)
    On:
    Thu Dec 02 2004
    Re: Checking Managing Friends.
    Seems to check out.
    I unchecked all the Request Notifies,
    and changed the status of Accept Manually.
    After submission all changes took hold properly.

    Then I changed things back to the way they were before. Submitted. Changes took effect. Then I submitted again just to make sure they remained.
    They did. Good job.
  • From:
    DancingButterfly (Legacy)
    On:
    Thu Dec 02 2004
    I've noticed the front page loads much faster now!
    Yes, the friends list is working a bit better now, still have to do the ticks one at a time, and my 'manually review' still keeps reverting to 'automatic'.
    Great job! :)
  • From:
    Salamander (Legacy)
    On:
    Fri Dec 03 2004
    THAT explains why boxes I checked kept unchecking themselves. I kept fixing them, and they kept unfixing themselves when my back was turned. I was convinced it was something simple I was doing wrong, because the problem wasn't consistent. I'll keep an eye on mine the next few days and see if the situation has stabilized.
  • From:
    MeanDonnaJean2 (Legacy)
    On:
    Fri Dec 03 2004
    Sorry Steve, but I've gotta ditto alifelessordinary's comment.

    Am I pitifully stupid or WHAT?....cuz I have NO clue as to what yer referrin' to.

    However, I reckon that since all is well on this end (i.e. "if it ain't broke..., etc.") I'm just gonna go along on my merry way now.

    But I'm quite sure that I'll be back again soon with yet another comment that'll reaffirm my complete stupidity.