Skip to content

Conversation

@andrewluotechnologies
Copy link
Contributor

XXPolicyRef objects have fields such as create time, update time, added by user ID, updated by user ID, but there fields are entirely useless since they are all copied from the XXPolicy object. In addition, while improving performance for creation of policies with large numbers of users, we discovered that a lot of time was being spent in JPA converting these Date objects especially. After removing these fields we saw a significant performance improvement (a secondary benefit is less database space usage).

…yZoneRef, XXRoleRef objects

XXPolicyRef, XXSecurityZoneRef, and XXRoleRef objects have fields such
as guid, create time, update time, added by user ID, updated by user ID,
but these fields are entirely useless since they are all copied from the
parent object. In addition, while improving performance for creation of
policies with large numbers of users, we discovered that a lot of time
was being spent in JPA converting these Date objects especially. After
removing these fields we saw a significant performance improvement (a
secondary benefit is less database space usage).
@mneethiraj
Copy link
Contributor

@andrewluotechnologies - thank you for the patch. It is merged in master and ranger-2.8 branches via #796.

@mneethiraj mneethiraj closed this Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants