Multi-tenant architecture - SQL views vs application logic, or both?
-
24-09-2019 - |
문제
Firstly, let me start by saying that I haven't ever directly used SQL views. I don't know if they are an antiquated thing, or if they're the right way to do things in this arena. Which of the 2 methods do you prefer when considering security (don't show Acme's credit card number that's on file to a WidgetCorp user, etc), and are there other important considerations besides security?
해결책
I use it for
Security purposes like you described
In sub queries. Helps to keep my queries more compact, efficient with indexed views and also if I find myself reusing the same sub-query them I just make it into a view.
Here something to read.
제휴하지 않습니다 StackOverflow