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
Attachments
Issue Links
- relates to
-
SENTRY-1937 Optimize performance for listing sentry roles by group name
- Resolved
-
SENTRY-1944 Optimize DelegateSentryStore.getGroupsByRoles() and update SentryGenericPolicyProcessor to retrieve roles to group mapping in a single transaction
- Resolved
- links to