#4574 improved query
Merge pull request #4576 from dotCMS/issue-4574-slow-getPermissionsByRole

#4574 improved query