• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate Performace Tuning - Anyone?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JForum 3 is ready for a public beta, and there is only one thing missing: tuning hibernate.

Does anyone have a good experience with its Second Level and specially Query Cache settings? I have been trying some stuff, but I'm not exactly happy with the way it is behaving, and the docs found in Google are too simplistic.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi;
I see you have recieved a lot of help with the hibernate tuning....
unfortunatelly, I cant help either. I use JPA+toplink regularly but never stopped to tune it...

anyway, where can we get the beta? just take it form CVS? or is it going to be published somewhere in the site formally?

thanks and sorry.
[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Generally I would go with "don't optimize too early" approach. You can always cache the definitive read-only items if there are some. One option is to take a good profiler (like JProfiler) and run some tests by loading the most visited pages and see where's the time taken.

Usually if your collections are lazy loaded the performance penalty should not bee too much (like when loading big lists that contain items with collections). Of course on cases you want always the items you should make sure that the collection is not lazy loaded.

-Marko
[originally posted on jforum.net by lahma]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rafael if you can point to some examples of queries requiring an optimization I can jump in the code to get a look.
[originally posted on jforum.net by ebourg]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys, I already found a solution. I implemented my specialized QueryCache on top of Hibernate's StandardQueryCache, and a very specific set of eviction rules. Seem to be working fine.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
reply
    Bookmark Topic Watch Topic
  • New Topic