-->
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: @Id(generate = GeneratorType.AUTO) && MySQL 4
PostPosted: Tue Jan 31, 2006 7:24 am 
Beginner
Beginner

Joined: Fri Oct 07, 2005 5:35 am
Posts: 38
Location: France
For all my entity beans I used @Id(generate = GeneratorType.AUTO).

I have a loop that implements a lot of objects. I had problems of perfomance, persist method was time consumming. I just change the GeneratorType to TABLE. It makes the creation of objects 2 faster !!!!

I'd like to understand what may explain this issue ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 01, 2006 4:51 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
identity do a db lookup for every generated id
table or sequence (with the appropriate alocation size) do a db lookup every allocation size generated id

_________________
Emmanuel


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.