Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-70

Sub-optimal index for grouper_composites

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 1.3.0
    • 1.2.1
    • API
    • None
    • Oracle database

    Description

      The grouper_composites table has a composite_factor_idx which is an index on left_factor and right_factor. The API does the query:

      select * from grouper_composites c
      where c.left_Factor = :left or c.right_Factor = :right;

      when adding a member to a group. During profiling of a loader program the method HibernateCompositeDAO.findAsFactor(GroupDTO) was using 14% of CPU. An Oracle explain plan showed a full table scan on grouper_composites. By adding an index on right_factor the CPU reduces to 8% and explain plan shows the indexes are being used.

      NB: If there were a method to add a collection of subjects presumably the method could be called once, rather than each time a member is added.

      Attachments

        Activity

          People

            shilen.patel@at.internet2.edu Shilen Patel (duke.edu)
            isgwb Gary Brown (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: