Monday, February 02, 2009

UPDATE: stateless sessions

BTW, if you are using IStatelessSession on inserts to reduce overhead, keep in mind that you can't persist the top level of an object tree and expect it to persist any child objects. you'll need to iterate over collections and explicitly persist them.

Using plain 'ole ISession means you don't have to do this, but you pay with overhead....

No comments: