View Single Post
  #3  
Old 09-18-2004, 02:49 PM
DJ RRebel DJ RRebel is offline
 
Join Date: Jul 2002
Location: CANADA
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks CarCdr ... you info helped me alot. I just really wished you had your forum listed so I could check it out ... lol.

Anyhow, yeah, the 'edit'/search complications I thought of while in bed last night ... lol.

That being said, I think based on what you said, I'd probably be better with seperate tables based on storage. I already have 32,000 threads, and I don't see these reviews ever reaching anything more than 5% to 10% of the total reviews. However, just adding the columns would be adding significant size to the threads table, as I'd need to add all the initial remix information datafields, as well multiple occurances of the download datafields to leave room for the posibility of 3 or 4 or more download links. I think the fact I almost definately need a seperate download data table to enable a many to one relationship between download data and reviews is the big difference between your and mine. I kinda overlooked this a bit when I first developed the idea. Also won't make me scared to add new datafields found to be important for reviews.

You modularize idea is going to save me tons of useless clutter !!! lol

Anyhow, do you have any advice on which way to relate the tables, (6 A or B, 7 A, B or C) ?


Would I be correct in assuming it would be best to put the relational linking data field in the table with the much smaller number of rows (a thread_id column in the new REVIEW table)? Or does the fact calling up each thread would force a search through all that smaller table to find the corresponding review row make it less efficient when instead having a review_id relational linking data field in the original THREAD table would target the proper review table row right away?


Same holds true for the dowload data subset table. Since it's many to one Is it more efficient to put the review_id (or thread_id, not sure which would be better) info field in the Download table, which would mean each review would have to search all downloads? or is it better to pay the price of size but have a download_id array that imidiately tells the review what the download rows are (if any)?


This sort of theory is the last lesson I really need before being comfortable with all of this ... I'm a little scared of hacking existing forum .php pages because I know I'll have to reinstall each hack after each complete upgrade, but so long as I stick to hacks that have a lot of benefit to my community, I think it's worth it. As you can see if you've visited my site's forum, I don't really have much of a problem with modifying templates anymore !!! lol

http://www.homeofchat.com/vB/


Anyhow, thanks tons CarCdr for confirming that I'm at least going in the right direction ... lol

And thanks to anyone else who has the time to respond to my additional table theory questions or even add more comments/opinions on my original post !!!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01140 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete