Couple of questions with regards to optimizing rules and improving performance in OPA.
Question 1:
- Which of the below is the effective way to write a rule in OPA in terms of performance as well as maintenance?
- Writing rule as Option #1 reduces the rule count in the rulebase. Does this help with optimizing the rules?
Option #1:

Option #2:


Question 2:
Does the XML Tree Structure (depth of the tree OR number of child nodes) affect the performance of the OPA rulebase?
Option #1:

Option 2:

Thanks,
Snehal