4 ms·
The example in the article could easily be implemented in a view. Even if you have different type of rules, you could union multiple strategies based on rol int
by ako 3y ago
The example in the article could easily be implemented in a view. Even if you have different type of rules, you could union multiple strategies based on rol into one overall view. Not sure how the presented approach improves on this.
- naasking 3y agoYou're not limited to calculating a formula based on a role, each individual row can have its own formula (say each employee can negotiate their own salary/compensation package). You would need a union of an infinite number views to equal the number of formulae possible with an expression column type. So it's definitely more expressive and powerful.