Page History
...
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.
- This is controlled by the configuration "
hibernate.current_session_context_class
", which in DSpace is configured to use a separate Session per Thread: https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace/config/hibernate.cfg.xml#L16
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.
...
Overview
Content Tools