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/22 18:59:00 UTC
[jira] [Commented] (SENTRY-1961) Optimize memory usage for
SimplePrivilegeCache
[ https://issues.apache.org/jira/browse/SENTRY-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16176937#comment-16176937 ]
Alexander Kolbasov commented on SENTRY-1961:
--------------------------------------------
What is the proposed more efficient representation?
> Optimize memory usage for SimplePrivilegeCache
> -----------------------------------------------
>
> Key: SENTRY-1961
> URL: https://issues.apache.org/jira/browse/SENTRY-1961
> Project: Sentry
> Issue Type: Task
> Components: Sentry
> Affects Versions: 2.0.0
> Reporter: Na Li
> Assignee: Na Li
>
> 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
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)