You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2018/04/23 20:52:00 UTC
[jira] [Commented] (SENTRY-2210) AUTHZ_PATH should have index on
the foreign key AUTHZ_OBJ_ID
[ https://issues.apache.org/jira/browse/SENTRY-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448848#comment-16448848 ]
Hadoop QA commented on SENTRY-2210:
-----------------------------------
Here are the results of testing the latest attachment
https://issues.apache.org/jira/secure/attachment/12920333/SENTRY-2210.001.patch against master.
{color:red}Overall:{color} -1 due to 2 errors
{color:red}ERROR:{color} mvn test exited 1
{color:red}ERROR:{color} Failed: org.apache.sentry.provider.db.tools.TestSentrySchemaTool
Console output: https://builds.apache.org/job/PreCommit-SENTRY-Build/3739/console
This message is automatically generated.
> AUTHZ_PATH should have index on the foreign key AUTHZ_OBJ_ID
> ------------------------------------------------------------
>
> Key: SENTRY-2210
> URL: https://issues.apache.org/jira/browse/SENTRY-2210
> Project: Sentry
> Issue Type: Improvement
> Components: Sentry
> Affects Versions: 2.1.0
> Reporter: Na Li
> Assignee: Na Li
> Priority: Major
> Attachments: SENTRY-2210.001.patch
>
>
> AUTHZ_PATH does not have index on the foreign key AUTHZ_OBJ_ID. When the number of entries become really large, a command like "select * from AUTHZ_PATH where AUTHZ_OBJ_ID = 8311512" becomes very slow because it results in table scan.
> To improve performance, we should add index for its foreign key in table AUTHZ_PATH.
> The sql script to do this in Oracle is "CREATE INDEX AUTHZ_PATH_FK_IDX on AUTHZ_PATH(AUTHZ_OBJ_ID);"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)