Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7928

Avoid reference resolution for user query with scope and declaredMembersOnly

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0, 1.9.13
    • Component/s: core
    • Labels:
      None

      Description

      Alex Deparvu, as discussed I think there is some room for improvement when running a user query with QueryBuilder.setScope(String groupId, boolean declaredMembersOnly), where declaredMembersOnly is set to true. Instead of resolving the member references and comparing the authorizableId in order to filter out those that are not declared member of the given group, it would be sufficient to compare the contentIDs and thus avoiding the extra round trip resolving the UUID to a Tree and building the corresponding Authorizable.

      I will attach a patch illustrating the proposed improvements along with some extension to the corresponding benchmark (and some initial numbers).

        Attachments

        1. OAK-7928.patch
          17 kB
          Angela Schreiber

          Activity

            People

            • Assignee:
              angela Angela Schreiber
              Reporter:
              angela Angela Schreiber
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: