• 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: 873
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: 10662
144
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: 873
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic