no, the same session factory, and it only updates the max_lo value when the client uses all the keys. for example. say you have a max_lo of 100.
build the session factory open session you will insert 150 records into table X begin transaction get max_lo of 100 set max_lo = 200 insert first 100 records with ids from 100 to 199 get max_lo of 200 set max_lo = 300 insert last 50 records with ids from 200 to 249 commit transaction dispose session dispose session factory // application shuts down .... application starts up again build the session factory open session you will insert 5 records into table X begin transaction get max_lo of 300 set max_lo = 400 insert first 5 records with ids from 300 to 304 commit transaction dispose session dispose session factory // application shuts down enabling batched writes (assuming sql server) this will only execute 8 sql statements, excluding begin/end transaction. an excellent was to see this in action is to run some simple scenarios in a console application and profile using NHProf. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
