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?