You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Alexander Kolbasov (JIRA)" <ji...@apache.org> on 2017/09/11 22:36:00 UTC

[jira] [Created] (SENTRY-1944) Optimize DelegateSentryStore.getGroupsByRoles()

Alexander Kolbasov created SENTRY-1944:
------------------------------------------

             Summary: Optimize DelegateSentryStore.getGroupsByRoles()
                 Key: SENTRY-1944
                 URL: https://issues.apache.org/jira/browse/SENTRY-1944
             Project: Sentry
          Issue Type: Improvement
          Components: Sentry
    Affects Versions: 2.0.0
            Reporter: Alexander Kolbasov
            Assignee: Arjun Mishra


When Solr is using Sentry server for authorization, it issues a lot of calls to {{getGroupsByRoles()}} function in {{DelegateSentryStore}}.

This function isn't very efficient - it walks over each role in the set, obtains role by name, get groups for each role, and collects all group names into a set.

It may be possible to optimize it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)