-->
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: concurrency refactoring with versions
PostPosted: Thu Jul 19, 2007 11:29 am 
Newbie

Joined: Thu Jul 19, 2007 11:21 am
Posts: 12
Hi,

Is it a good practice to have row VERSIONs on each table in your database (even if the application logic kinda restrict them to read-only, or just not so prone to concurrent updates)? Is there a big impact on performance if so?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 19, 2007 11:55 am 
Regular
Regular

Joined: Sat Jan 22, 2005 6:57 pm
Posts: 50
Location: Chicago
Quote:
Is it a good practice to have row VERSIONs on each table in your database

No. Use VERSION only when necessary or when you fear concurrent modifications could cause a problem. In the case where your application handles it, you should be careful in that if your application becomes distributed one day and runs on more than one server, I am not sure how you prevent concurrent updates in application only code. The DB is the easiest and most preferred.



Code:
Is there a big impact on performance if so?

No. There is no big performance impact on doing version. However, this does not mean that you should use them everywhere.


If you found this helpful, dont forget to rate! :)


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.