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

  • SEARCH
  • Home
  • 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 7639005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:18:37+00:00 2026-05-31T08:18:37+00:00

We have a system which has complex user permissions which determine which contacts a

  • 0

We have a system which has complex user permissions which determine which contacts a user can see in the application and I am looking at the best way of structuring the tables to enable us to scale. The permissions are too complex to work out on the fly so need to be written to a table which will then be updated whenever admin functions are performed or a contact is added/edited/deleted.

The contacts table has 10 million records in it. My first thought was to create a contactUserLink table which would have contactUserLinkID,contactID,userID with the clustered index on contactUserLinkID and a non clustered index on the contactiD and userID for quick searching on.

My concerns with this are this:

  1. If we had 200 users and they all had different access to large parts of the data the contactUserLink could balloon to 100s of millions of rows.

  2. There would be a lot of adding / editing / deleting going on in this table as contacts were edited and admin changes on the rules occur.

  3. Admin changes could lead to huge amounts of deleting / inserting as user permissions are re-worked which if they took a long time could leave users with no access.

  4. If a new user is added and he has access to all the records writing 10 million records into that table isn’t likely to be fast?

We are using SQL 2008.

I hope I have managed to explain that so that it makes some sense.

Any help on this would be greatly appreciated.

  • 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-31T08:18:39+00:00Added an answer on May 31, 2026 at 8:18 am

    This sort of granular user permissioning is not ideal. As stated in #4, writing a 10 million records to give an admin access to all contact is most definitely not scale-able. Have you tried looking into role based permissioning? Is this an option in your scenario?

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

Sidebar

Related Questions

I have a fairly complex content management system I've written in PHP, which has
I have a web system which has a classical parent-children menu saved in a
I have a current system which is build as a Windows Application, and does
I have a logger system which basically is a fancy way of writing my
I have a item tracking system which has an Item model which has a
I'm trying to fix a very complex buildbot base build system, which has the
I have a system which sits on a web server and generates files on
I have a system which is writing files to a folder using FTP. I
I have a system which is receiving log files from different places through http
I have a system which contains multiple applications connected together using JMS and Spring

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.