-->
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: To many calls to VersionType.next()
PostPosted: Mon Mar 02, 2009 12:07 pm 
Newbie

Joined: Fri Feb 27, 2009 7:01 am
Posts: 5
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.3.1


Hy all
I've got a graph of object which I'm trying to save using hibernate.
The special thing about my mapping
    I've got a custom id generator (using a pool of values generated from an oracle sequence).
    I'm also using a custom VersionType (also using a pool of values issued from an oracle sequence).


I've noticed for a small graph of newly created objects that I call my id generator ~150 times. The timestamp generator is however called ~700 times.

Why such a big difference? For each new object, I need one id and one timestamp no? Why do I need more than 4 times that number.

What really bothers me is that when this graph of objects increases (~10'000 objects) I'm getting timeouts because of the many many many timestamp I need to retrieve from the database!!!

Does anybody has an idea of what's going on?


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.