xiaoli created RANGER-2236:
------------------------------

             Summary: updatePolicy performance problem
                 Key: RANGER-2236
                 URL: https://issues.apache.org/jira/browse/RANGER-2236
             Project: Ranger
          Issue Type: Improvement
          Components: admin
    Affects Versions: 0.7.0
            Reporter: xiaoli


when a hdfs policy has many users,CreateNewPolicyItemsForPolicy and 
deleteExistingPolicyItems possible performance issues

List<XXPolicyItemUserPerm> users = userPermDao.findByPolicyItemId(polItemId);
 for(XXPolicyItemUserPerm user : users) {
 userPermDao.remove(user);
 }

public boolean remove(T obj) {
 if (obj == null) {
 return true;
 }

em.remove(obj);
 em.flush();

return true;
 }

---------------------------

Causes the updatePolicy method to return execution results slowly



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to