Improvements to rule
There is a rule which is taking around 4 hours to run. and biggest contributor is following section i have attached.
Pls help to reduce time. any suggestion is welcome towards modification of the rule.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):