Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4276

Separate database Session from Context

    XMLWordPrintable

    Details

    • Type: Code Task
    • Status: Volunteer Needed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      org.dspace.core.Context has too many jobs to do, with conflicting lifecycles. In particular the incorporation of a Session leads to problems interacting with Hibernate, and results in work-arounds that are complex and sometimes confusing. I believe that we need to move the management of Sessions from Context into the DAOs:

      • to promote smaller, shorter-lived transactions;
      • to simplify non-transactional read-only queries;
      • to support multiple Sessions in long-lived bulk operations with many short-lived read/write operations driven by a longer-lived read-only result stream;
      • to localize Session management decisions within the code that can best make them (with hints from upper layers).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mwood Mark H. Wood
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: