Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-787

Missing equals and hashcode preventing the re-use of SharedFieldSortComparator

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.3
    • Fix Version/s: 1.3
    • Component/s: jackrabbit-core
    • Labels:
      None

      Description

      As briefly mentioned in the dev email list, improperly implemented (i.e., missing - using the default Object implementation) equals and hashcode in SearchIndex.java prevents the reuse of a SharedFieldSortComparator between different queries when nothing has changed in the repository. In tests, this appears to have a fairly significant negative performance impact.

      Please see the following for the correct code:

      http://svn.apache.org/viewvc?view=rev&revision=506908

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dbjohnson.e David Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: