ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Luo <andrewluotechnolog...@outlook.com>
Subject Review Request 71554: RANGER-2595: Improve policy delete performance using batch delete
Date Sun, 29 Sep 2019 06:13:14 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/71554/
-----------------------------------------------------------

Review request for ranger.


Bugs: RANGER-2595
    https://issues.apache.org/jira/browse/RANGER-2595


Repository: ranger


Description
-------

Policy deletion is slow for policies that have a large number of users or resources.  This
patch uses batch SQL deletion to speed up deletion.


Diffs
-----

  security-admin/src/main/java/org/apache/ranger/biz/PolicyRefUpdater.java 055cd382b 
  security-admin/src/main/java/org/apache/ranger/db/XXPolicyRefAccessTypeDao.java 1ef01bb28

  security-admin/src/main/java/org/apache/ranger/db/XXPolicyRefConditionDao.java 2c04ab483

  security-admin/src/main/java/org/apache/ranger/db/XXPolicyRefDataMaskTypeDao.java 258e3b0ba

  security-admin/src/main/java/org/apache/ranger/db/XXPolicyRefGroupDao.java 08829d4f7 
  security-admin/src/main/java/org/apache/ranger/db/XXPolicyRefResourceDao.java e259ee864

  security-admin/src/main/java/org/apache/ranger/db/XXPolicyRefRoleDao.java b92f8066f 
  security-admin/src/main/java/org/apache/ranger/db/XXPolicyRefUserDao.java f7b6131c6 
  security-admin/src/main/resources/META-INF/jpa_named_queries.xml 9714fa91b 


Diff: https://reviews.apache.org/r/71554/diff/1/


Testing
-------

Tested manually, ran build/tests


Thanks,

Andrew Luo


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message