Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-2011

Label replacement for rendering text in facets does n queries.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Fix Version/s: 7.x-1.10
    • Component/s: None
    • Labels:
      None

      Description

      Currently when rendering text for facets if labels linking to objects are selected n queries will be made to facilitate this. For large amounts of facet results this can needlessly hit the index for results which can be accomplished in one query.

      --Use Case--
      Better performance with multiple facets configured and large amounts returned.

      --Technical Approach--
      Perform a single query and store a mapping which can be referenced when checking for labels later on.

      --Test Case--
      Configure multiple facets and a field such as RELS_EXT_isMemberOfCollection_uri_ms and configure the replacement of the PID with the label.
      Note the improvement in speed once code is pulled.



        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jordandukart Jordan Dukart
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: