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

Reduce initialization of ItemCounter

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Code Review Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Needed

      Description

      When ItemCounter is initialized (in 5.x versions of DSpace), a solr query is performed to count the number of items in each community/collection.
      CommunityViewer and CommunityBrowser each initialize this object once for every node, greatly reducing performance.
      Simply initializing one global ItemCounter and using it throughout the transformar fixes the issue

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            kingkrimmson April Herron (Atmire)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: