-->
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.  [ 1 post ] 
Author Message
 Post subject: Oracle id generation performance
PostPosted: Thu Aug 31, 2006 3:39 pm 
Regular
Regular

Joined: Fri Dec 17, 2004 10:38 am
Posts: 54
Hello!

I'm using hibernate 3.0.5 with oracle and "sequence" id generator. Everything works fine except one thing. Under heavy load (really heavy, many inserts, updates) i have sequence locking. Have to enable Oracle sequence cache to avoid this.
I see 3 possible id generation strategies in my case:
1) using "sequence" (just as i do now)
2) using "seqhilo" - never used it before, but many sources recommend it as very efficient solution. since i use jdbc tx manager and hibernate created connections (via c3p0 pool) see no problem with this one
3) id assigned by trigger from sequence with "assigned" generator

I wonder, which strategy is most performant?
Thank you


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

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.