Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate perfomance

 
sreefor vasufor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
to improve hibernate performance we will use caching technique right
is there another techniques are there to reduce database traffic
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sreefor vasufor wrote:hi
to improve hibernate performance we will use caching technique right
is there another techniques are there to reduce database traffic


Lots.

1) Making sure you have the correct fetching strategy for each individual use case so you get exactly the data you need, no more no less.
2) Fetching stratgeies correct so you make the least amount of database calls needed.
3) Making sure you put the right kind of data into the second level cache, so the cache itself doesn't slow down performance because it has to update and replicate itself all the time, taking up CPU cycles.

plus many more. Which makes Hibernate a steep learning curve, but one you need to do in order to make it as performant as possible.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic