Nhibernate with oracle - best way for primary key increment -


I am using Nhibernate for the Ordid, and I need to increase my primary key value for each insert. Which is the best way and efficient way? Oracle sequence, Ninebet increments or any other way?

With Oracle, you seqhilo , which instead of a different table Uses the database sequence that gives you the benefit of the move (main generation in memory, no db roundtrip is necessary) and sequence at the same time (no separate transaction is required).


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -