-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: dirty checking vs dynamic-update
PostPosted: Wed May 18, 2011 8:49 am 
Newbie

Joined: Wed Jun 17, 2009 2:04 am
Posts: 6
Whats the difference between dirty checking vs dynamic-update hibernate.

I know that dirty checking will update/sync data with db whenever a change is done.
And dynamic-update will update the db only with modified values.

But both are doing the same thing ..right?? Updating the modified values.. Can you please specify why we need this two. One is enough..right??


Top
 Profile  
 
 Post subject: Re: dirty checking vs dynamic-update
PostPosted: Tue Jul 23, 2013 10:30 pm 
Newbie

Joined: Tue Jul 23, 2013 10:26 pm
Posts: 1
I've had the same question, after some research i found out the following

if you have list of objects, and you are trying to update this to the DB, only few have been changed, if you update this to the db, only those which are modified are updated. this is automatic dirty checking.

Dynamic update is when you have only a few columns updated in a object. hibernate will updaate the update query and save the date into the db, but this has some performance issues, unless you are updating into a bigdata.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.