NHibernate Session First-Level Cache Memory Management for Large Batch Processing
First-Level Cache and Identity Map Behavior NHibernate uses the Session as a mandatory first-level cache to maintain an identity map of all loaded entities. This ensures that a single database row is represented by only one object instance within the session scope. However, because the session tracks every entity to perform dirty checking during the flush pr