-->
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: Information on "increment" generator algorithm
PostPosted: Wed Mar 29, 2006 6:09 pm 
Newbie

Joined: Wed Mar 29, 2006 6:03 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1


Hi,

The hibernate document says which is available in the following link http://www.hibernate.org/hib_docs/v3/re ... ml_single/ says
the built-in generator "increment" should not be used in cluster.

increment

generates identifiers of type long, short or int that are unique only when no other process is inserting data into the same table. Do not use in a cluster.


Does this mean we should not use in a database Cluster environment or in application cluster ( JVM ) environment ?

Thanks,
Dinesh


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 8:36 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Increment is an in memory process (see the code to confirm). Thus obviously, it does not hit the db (other than getting the first starting value at SessionFactory startup) when allocating the next number.


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.