Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2236

updatePolicy performance problem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.7.0
    • None
    • admin
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            xiaoli xiaoli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: