Hibernate Success

So after all my tweaking did my Hibernate effort pay off? YES! Here is some log output of my production server (sounds a lot grander than it is) when I turned on DEBUG for Hibernate management code:


getMostRecentlyPublished took 54 millis
getAllCategories took 3 millis
getPublishedBefore took 19 millis
getPublishedBefore took 4 millis
getMostRecentlyPublished took 85 millis
getAllCategories took 4 millis
getMostRecentlyPublished took 55 millis
getPublishedBefore took 2 millis
getPublishedBefore took 5 millis
getAllCategories took 4 millis
getMostRecentlyPublished took 54 millis
getPublishedBefore took 69 millis
getPublishedBefore took 26 millis
getAllCategories took 3 millis
getMostRecentlyPublished took 86 millis
getPublishedBefore took 4 millis
getPublishedBefore took 4 millis
getAllCategories took 3 millis
getMostRecentlyPublished took 56 millis
getPageOfPublishedArticlesByCategory(Law, 0) took 86 millis
getAllCategories took 3 millis
getMostRecentlyPublished took 57 millis
getPublishedBefore took 59 millis
getPublishedBefore took 37 millis
getAllCategories took 4 millis
getMostRecentlyPublished took 58 millis

I’m amazed quite how fast some of these queries run considering the machine is just a single processor pentium 3 with 384M of RAM. Most of these queries are running 20x faster some are running 100x faster. Load average on the machine has dropped from about 4 to around 0.6 [load average is the number of processes competing for the CPU averaged over a window of time - usually 1 minute, 5 minutes and 15 minutes].

Now if I could get my hands on some proper hardware I could try out some funky JBoss Cache cacheing.

One Response to “Hibernate Success”

  1. mamana Says:

    Could you tell please how did you get better results?

    Im having problems with memory and performance for queries of 70.000 rows.

    thanks!
    mamana

Leave a Reply