Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In DSpace 6, Hibernate manages the DB connection pool.  Each thread grabs  is associated with a unique Hibernate Session (which corresponds to a DB connection ) from in the pool). This means two Context objects could may use the same DB connection (if they are in the same thread). In other words, code can no longer assume each new Context() is treated as a new/separate database transaction.

Read Only Context

The Context object can be set to a read only mode for enhanced performance when processing many database objects in a read-only fashion.

...