vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Table Scheme Help (https://vborg.vbsupport.ru/showthread.php?t=93975)

Guest190829 08-10-2005 06:59 AM

Table Scheme Help
 
Hello fellow coders!

I'm hear looking at my table layout for vbspace, and have a question. The hack will have the ability for comments to be added to

1.) The users "space" page as user comments
2.) The users Blog page as comment for entries
3.) The users Galler Page for comments on pictures.

What would be the most logical and optimized way of the storing the comments?

1.)Having one table with is_gallery, is_blog, and is_space, fields to determine where they belong?

2.) Or seperate tables for each type of comment. (Ex. gcomments, scomments, bcomments)

I'm thinking the 2nd choice would be best, since the tables wouldn't contained redundant/null fields. But I could be wrong of course. ;)

Any help will be greatly appreciated!

Guest190829 08-11-2005 07:26 PM

Bump-a-roonie. :)

AN-net 08-11-2005 08:02 PM

i would personally put all in one table and just use a field and numbers to distinguish them but then again if it becomes very popular requests to a large table can cause some usage increases and slow down the table.

Guest190829 08-11-2005 08:03 PM

Yeah, the chances for it becoming a large table is high. So I guess it would be best to have seperate tables...any other input on this?

Reeve of shinra 08-11-2005 08:14 PM

Do you plan to move posts from one to the other in anyway? That could be a consideration too.

Guest190829 08-11-2005 08:24 PM

Quote:

Originally Posted by Reeve of shinra
Do you plan to move posts from one to the other in anyway? That could be a consideration too.

Not sure what you mean. Comments won't be moved, but they will be edited and deleted sometimes.


All times are GMT. The time now is 04:45 PM.

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.00918 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
  • (6)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