-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/DaxStudio/DaxStudio-Docs
- Loading branch information
Showing
6 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: View As | ||
--- | ||
|
||
The **View As** option can be found in the **Advanced** tab and enables easy testing of RLS roles | ||
![](viewas-button.png) | ||
|
||
This enables for both testing the functionality of the selected role to make sure queries return the correctly filtered data and you can run Server Timings traces to measure the impact of these roles on your queries. | ||
|
||
The **View As** dialog will show a list of the roles in your model and you can choose which one to test | ||
|
||
![](./view-as-dialog.png) | ||
|
||
:::info | ||
If you are testing a role with dynamic security. (ie. one that references the USERNAME() or USERPRINCIPALNAME() functions) then you need to tick the role you want to test _and_ tick the **Other User** option to impersonate a different user | ||
::: | ||
|
||
|
||
When it is active the **View As** option shows a yellow information bar at the top of the query editor. You can exit out of the **View As** mode by clicking on the X in the right hand side of the information bar | ||
|
||
![](./viewas-results.png) | ||
|
||
# Benchmarking RLS Roles | ||
|
||
To make performance comparisons even easier a new option has been added to the Benchmark feature which is enabled when you start the benchmark while you have **View As** active. | ||
|
||
![](benchmark-rls.png) | ||
|
||
When you tick the option to do a second pass the benchmark results will include a second set of columns in the results for those passes where the RLS role was active | ||
|
||
![](benchmark-rls-results.png) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.