-->
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.  [ 4 posts ] 
Author Message
 Post subject: Identity Generation versus UUID
PostPosted: Wed Jan 16, 2008 12:05 pm 
Newbie

Joined: Wed Jan 16, 2008 11:48 am
Posts: 3
After reading many posts and Googling around, I have been unable to come up with a good answer to what strategy is best when you need globally unique ids.

I've gathered that identity columns require two database transactions per insert. Also, from several Hibernate team members that using UUID is not a good strategy due to performance issues.

Can someone point me to some more documentation, not necessarily Hibernate related, that can elaborate on these concepts?

Thanks!


Top
 Profile  
 
 Post subject: Re: Identity Generation versus UUID
PostPosted: Wed Jan 16, 2008 1:37 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
This is not exactly an answer for you but are you sure you want globally unique identifiers or database wide unique identifiers will be good enough for you?


Farzad-


Top
 Profile  
 
 Post subject: Re: Identity Generation versus UUID
PostPosted: Wed Jan 16, 2008 2:55 pm 
Newbie

Joined: Wed Jan 16, 2008 11:48 am
Posts: 3
farzad wrote:
This is not exactly an answer for you but are you sure you want globally unique identifiers or database wide unique identifiers will be good enough for you?


In most cases, database wide will be sufficient. However, I'm looking to a) learn something and b) be able to scale out without headaches. Basically, I would like to get a firm understanding of exactly when each id generation method is most appropriate or when it makes sense to develop some other (homegrown) technique.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 17, 2008 11:07 am 
Newbie

Joined: Wed Jan 16, 2008 11:48 am
Posts: 3
I have answered at least one of my questions, a good explanation of UUID generation.

http://www.iwombat.com/whitePapers/UniqueIdentifiers.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.