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

Optimize retrieving entities by other entity types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Sentry
    • None

    Description

      Right now when we get privileges from sentry, we pass in a provider like set of groups. Then we create a MSentryGroup object for each group and then get roles using the .getRoles() method. This is bad since we only need the roleNames for the group and not the entire Role object.
      Instead running a SQL like query and just getting roleNames will drastically improve performance

      Attachments

        1. SENTRY-1896.11.patch
          11 kB
          Arjun Mishra
        2. SENTRY-1896.10.patch
          4 kB
          Arjun Mishra
        3. SENTRY-1896.09.patch
          4 kB
          Arjun Mishra
        4. SENTRY-1896.08.patch
          2 kB
          Arjun Mishra
        5. SENTRY-1896.07.patch
          2 kB
          Arjun Mishra
        6. SENTRY-1896.06.patch
          2 kB
          Arjun Mishra
        7. SENTRY-1896.05.patch
          2 kB
          Arjun Mishra
        8. SENTRY-1896.04.patch
          2 kB
          Arjun Mishra
        9. SENTRY-1896.03.patch
          2 kB
          Arjun Mishra
        10. SENTRY-1896.02.patch
          2 kB
          Arjun Mishra
        11. SENTRY-1896.01.patch
          4 kB
          Arjun Mishra

        Issue Links

          Activity

            People

              arjunmishra13 Arjun Mishra
              arjunmishra13 Arjun Mishra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: