If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Buisiness Logic in SP, Cache

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-01-09, 13:28
sqlguru sqlguru is offline
Registered User
 
Join Date: Jun 2009
Posts: 66
Buisiness Logic in SP, Cache

In my RBAC model, the middle-tier needs to check permissions before displaying certain UI elements. This permission need to be further enforced in the relevant stored procedure.

For an example, the "ban member" button visibility depends on whether you have the "ban member" permission. The "ban member" stored procedure also needs to check that the current user can actually ban members.

I wrote a stored procedure "HasPermission 'ban_member', @current_userid" stored procedure which both the relevant SP and the UI can use. However, considering that this type of functionality is required on a lot of elements/features throughout the application, this SP will need to be called several times (like ban button, post button, edit button etc).

Should I just let SQL Server handle it OR should I create an application layer cache that will cache the 'highest' permissions of the user? I know SQL Server can handle millions of transactions so not sure whether to cache or not.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On