Description
For the calls to download tags from plugins, Ranger Admin returns all the service-resources that have one or more tags associated. This can be optimized to include only service-resources that have tags for which policies exists.
For example, if tag-based policies exists for tags PII and PCI, Ranger Admin should return service-resources that are associated with PII or PCI tags only; any service-resource that is not associated with either of these tags should be excluded. In addition to reducing the size of the tag-download, this can improve policy-engine performance by not having to deal with tags that don't have policies.