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 7597343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:08:04+00:00 2026-05-30T22:08:04+00:00

The database structure is like this : each user has create their list ,

  • 0

The database structure is like this : each user has create their list , and have a access right assign:

For example

table: user
attribute: UserID

table: list
attribute: ListID

table: user_list
attribute: ListID,UserID, Rights

There are two kind of rights :read , edit

Everything work fine until i have a rights call public ( everyone can edit)
So that if i have 100 member with 10 list, i have to create 1000 userID – Rights: edit rows

that is incredibly increase in scale.

How to solve this:

1)Create separate table named public and put the ListID in it?

2) Store the row as ListID , null UserID, and with Rights ‘Public’?

Which method is better? Thank you.

  • 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-30T22:08:05+00:00Added an answer on May 30, 2026 at 10:08 pm

    I’m not sure I’m completely clear on your situation, but…

    If you want to efficiently make a list public, why don’t you just create an IsPublic field in your list table. Check that when the list is public. If a list IsPublic you don’t need to check for user specific rights.

    If you are concerned with too many rows in your user_list table, you can set it up with the fields:

    UserID, ListID, CanEdit, CanRead

    I would only do that if the number of User rights is not likely to keep growing. And I’m not sure what the difference in performance will be.

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

Sidebar

Related Questions

I have mysql database structure like below: CREATE TABLE test ( id int(11) NOT
My database structure looks something like this: Person Id Name FieldA FieldB Phone Id
I have a database structure that has a Person table which contains fields such
I have two pieces of data: 1) User and 2) Portfolio. Each user has
I have a table structure like this (vertical design). I can have unlimited number
I have a database table structured like this (irrelevant fields omitted for brevity): rankings
I am trying to figure out how to structure this database. I have used
I am developing a database-like application that stores a a structure containing: struct Dictionary
I'm using a particular database table like a Set data structure, i.e., you can
Our school's ERP has a nasty database structure to it and since it is

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.