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

Optimize MembershipCache invalidation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Later
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: jackrabbit-core, security
    • Labels:
      None

      Description

      The current membership cache is invalidated entirely for every membership change, i.e. entries that are not affected by the change are invalidated. systems with many authorizables tend to have a full membership cache will suffer from frequent invalidation.

      The way the cache is invalidated today is based on synchronous observation event. From the event alone it will be very inefficient to figure out all membership changes without extra state keeping. A more direct approach is to invalidate the membership changes directly in the cache based on the Group.addMember(), Group.removeMember() and Group.remove() methods. If the user manager is not autosave enabled, the invalidation needs to be delayed until the save call.

        Attachments

        1. jcr3688-r1538062.patch
          21 kB
          Tobias Bocanegra

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: