Forum Discussion
How to track the RLS performance in embedded
- 2 years ago
You should not rely only on Performance Analyzer results, because you are not considering whether the storage engine cache is used or not in the two cases. You should analyze the performance with DAX Studio impersonating the user and the role required. THe right approach is a big "it depends" and there are many things to consider. Potentially, the M2M approach could be way faster, but - it depends!
There is an entire section on Optimizing DAX Video Course - SQLBI that describes how to analyze and optimize security.
This kind of analysis usually requires access to the live model (and dedicated quality time - not something we can do on a public forum). The VPAX file can be analyzed by tools such as www.daxoptimizer.com, but that service currently don't analyze the impact of RLS, so it would not be directly useful for that.