vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Retrieval from Database v Flat Files (https://vborg.vbsupport.ru/showthread.php?t=51435)

AndrewD 04-10-2003 10:05 AM

Retrieval from Database v Flat Files
 
Can anyone compare the efficiency of storing and pulling large files (0.5-5 Mbytes) out of an SQL database compared to straightforward hyperlinks to flat files?

A large part of our board is used to give our members access to reports, presentations, etc. These are currently stored as individual files (pdf, etc) within the web site and accessed via [URL] tags in the posts. I avoided using the VBulletin facility to handle these as attachments, primarily because there can only be one attachment per post.

As we built the site up, we really need a proper document management system to index, search, etc, this material. I'm thinking about the best way to do this. Storing everything in the database would produce a database that is half a gigabyte and growing, but obviously helps us handle security, access, etc. Flat files keep the database small but need discipline with file names, security, etc. Any comments/advice?

thanks

filburt1 04-10-2003 10:26 AM

If it's just a direct link to an actual file then that wins, athough IIRC MySQL can compress data which means that the data will take up less space in the end.

Of course it'll be harder to implement permission control with directly linked flat files...

Xenon 04-10-2003 12:07 PM

it depends also on your setup.
do you have your fileserver devided from your DB server?
compare the loads of both servers to see which one will handle it better ;)


All times are GMT. The time now is 10:22 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.01519 seconds
  • Memory Usage 1,704KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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