Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6674005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:41:42+00:00 2026-05-26T03:41:42+00:00

For every function in my service, I have a security lookup to ensure the

  • 0

For every function in my service, I have a security lookup to ensure the user has permission to access the function.

The lookup function is called like:

SecurityCheck("Insert", "Book", Session.UserID);

The lookup table looks something like this:

        | Select All | Select Own | Insert | Update | Delete |
Book    |   true     |    true    |  false |  false |  false |
Author  |   true     |    true    |  true  |  true  |  true  |
...

The lookup table is going to end up being 30-40 rows.

I’ve read that complex objects should be not be stored in the session. Is this object generally considered too big to store in my session?

Would the extra database call on every function slow down my application significantly? Where is the appropriate place to store this table?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:41:42+00:00Added an answer on May 26, 2026 at 3:41 am

    30-40 rows is not that big it would be around 500-1000(if you add more stuff) bytes in memory for each user 1k for 1000 users.

    But as a general rule when you do caching you have to balance the use of memory against the speed. In this case it depends on how often those services are called and what is their response time.
    Example if you have a function that takes 1 sec and it is called 1 time/second then you can use the database version. If you do the functionality right/clean it should not affect the performance.

    If you have a function that takes 0.10 secs and is called 100 times/second than I would suggest to use the in memory cache.

    Note: the rules above only work for in memory sessions.
    – If you have a SQL session – do not put them in session – load them through normal SQL I think it should work faster than loading from DB & deserializing them.
    – If you have a session state server it would depend on how the server performs but still even in this case you might want to take them from SQL as there is still serialization that will take place

    for these 2 cases another option is to put the users rights in the application cache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C++ windows service which should call a function every 15 minutes.
Javascript has a poorly constructed but convenient arguments variable inside every function, such that
I have experience with OCaml. You had to write a stub for every function
I have foreach function which calls specified function on every element which it contains.
In MATLAB, I'd like to apply a function to every pair of column vectors
I have a background service that is getting updates from the location manager every
I have a windows service running, inside this i want to run a function
In the client side every time I call a function from my WCF service,
I have written a web service to resize user uploaded images and all works
I have a Windows Service which performs a certain function, and then needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.