suaveant has asked for the wisdom of the Perl Monks concerning the following question:
We are in the process of creating a new user system where I work. The way we work now is we call out to another department's system to grab a list of Access Priviledges (accprivs) for the user for each page.
We are currently working up our own local version of an accpriv system, and are having a design issue. My co-worker, who is pretty much building it, was going to use a large bitmap stored in the user table to handle the accprivs, select it out, and do all the dirty work in perl. This doesn't sound quite right to me.
My thought was to have a table of accprivs with accpriv ids, and a mapping table to map accpriv ids to user ids. Then to grab all the accprivs for a user is a simple JOIN query. However, the only arguments I can really offer for this is that it would be easier to write an accpriv editing page with this system, and easier to move things around.
Now, I could be wrong, does anyone have any good arguments/suggestions on how to might be best to handle this? The system is looking at around 1000 users and 300 accprivs, and will be accessed from a fastcgi connected to the database. Any comments are welcome - thanks
- Ant
- Some of my http://www.perlmonks.org/index.pl?node_id=56739#Best - (1 2 3)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: User access DB design
by VSarkiss (Monsignor) on Nov 01, 2001 at 02:19 UTC | |
|
Re: User access DB design
by tstock (Curate) on Nov 01, 2001 at 02:27 UTC | |
|
Re: User access DB design
by growlf (Pilgrim) on Nov 01, 2001 at 07:19 UTC | |
by suaveant (Parson) on Nov 01, 2001 at 19:23 UTC | |
|
Re (tilly) 1: User access DB design
by tilly (Archbishop) on Nov 01, 2001 at 19:17 UTC | |
|
Re: User access DB design
by mpeppler (Vicar) on Nov 01, 2001 at 23:37 UTC |