Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-1961

Optimize memory usage for SimplePrivilegeCache

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0
    • None
    • Sentry
    • None

    Description

      The implementation of SimplePrivilegeCache and in particular the 2 map<String, Set<String>> fields, cachedAuthzPrivileges and wildCardAuthz is not memory efficient. The strings stored in these structures can be quite long e.g. (server=server1->database=b1, (server=server1->database=b1->action=insert)). For really big installations with lots of entities (roles and privileges) these fields may end up taking some non-substantial amount of memory.

      We should come up with of a more efficient memory representation to implement PrivilegeCache

      Attachments

        1. SENTRY-1961.001.patch
          13 kB
          Na Li

        Issue Links

          Activity

            People

              Unassigned Unassigned
              linaataustin Na Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: