vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Integer Key Sizing (https://vborg.vbsupport.ru/showthread.php?t=37235)

galt 04-09-2002 11:25 PM

Integer Key Sizing
 
As two of you know, I am proceeding along with my modest yet poweful CMS that loosely couples with vBulletin.

I am seeking some design perspective.

JelSoft chose to implement usergroupid as a smallint(5). I believe that I want to expand that in areas where my system touches vB. Would it be a bad idea to have one table (vB) keyed by usergroupid (smallint-5) and another (my) table keyed by usergroupid (int-11). Any issues with joining the two tables ?

Mark Hensler 04-10-2002 05:29 AM

Ideally, these would be of the same size.

Besides, what the heck are you doing that would require you to need that many usergroups?

galt 04-10-2002 05:40 AM

Well I know that ideally they would be the same. The question is, will something blow up in the future if they are different sizes (assume the data is consistent)?

I am looking at ways to individually customize content for each user. 32,000 groups is not enough if I attack it that way. But it is not a complete plan yet, and I am thinking I may go a different way. But a different way looks like it means two different authorization systems with some kind of toggle (group vs user level auth). By extendingthe "group" approach, I thought I could make it all fall out nicely. The real problem IMHO is that vB only allows each user to be in one group. Maybe they will fix this in v3?

I will figure it out by the weekend. Thanks.

Admin 04-10-2002 09:52 AM

If you are doing it on a per-user basis, just use the userid to identify the user. Like access masks I suppose.

Quote:

Originally posted by galt
The real problem IMHO is that vB only allows each user to be in one group. Maybe they will fix this in v3?
Hmm... gee I don't know. ;)

galt 04-10-2002 12:02 PM

Well sure, userid gives per user control, but loses the ability to group people together. It is obvious.

I always design for the extremes, and let everything in the middle take care of itself.


All times are GMT. The time now is 01:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01023 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete