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.
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.