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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -