• Post Reply Bookmark Topic Watch Topic
  • New Topic

When to use dirty checking option and when not to use it?

 
Monica Shiralkar
Ranch Hand
Posts: 874
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read about dirty checking feature in hibernate. I have read that if this feature is enabled and state of object changes then hibernate automatically checks this and does the update (Explicitly saving the object is not required). I have not understood that why would some not want to enable this useful feature. Are their certain cases where dirty checking should not be enabled.

thanks
 
Roel De Nijs
Sheriff
Posts: 10763
148
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article discusses the implicit updates and mentions some downsides.

If you have a read-only application, dirty checking is not needed at all
 
Monica Shiralkar
Ranch Hand
Posts: 874
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!