Thanks
I now understand things better .
I'm thinking about creating my own generator using the
techique you've suggested as a feature for hibernate.
I want to use alter sequence increment to get a bulk of ids
and then assign them to my objects .
I think if I create a singleton with synchronized method which will provide a range of ids for each thread it should be more efficient .
then doing select sequence.next_val from dual for each insert.
I created a simple test to simulate my use case and using sequence
generator I can achieve a rate of 100 rec per second.
(actually I have one logical record which is inserted into 2 physical tables
so I guess its 200 inserts per second ).
This is far behind the rate one person in this thread
http://forums.hibernate.org/viewtopic.p ... 8c47510f94
claimed to achieve - (2000 rec per sec.)