Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vBgarage

Reply
 
Thread Tools
vBGarage 4.0.0 FS mode Vs. DB mode Details »»
vBGarage 4.0.0 FS mode Vs. DB mode
Version: , by noppid noppid is offline
Developer Last Online: Sep 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-22-2005 Last Update: Never Installs: 0
 
No support by the author.

vBGarage now has two operating modes. FS or file system mode and DB or database mode. Both modes store full size and thumbnail images in the respective place.

In the previous version of vBGarage images were thumbnailed on the fly. We found in testing that this method was putting an enormous load on the server when five images of 200k to 250k were displayed as the latest uploads all at once. Even on a board with images limited to and below 64k we saw the usage shoot way up.

After some research the answer seemed to be static thumbnails created at the time of upload. The reasoning being that you will have far fewer uploads then displays.

The justification is that even 1000 images with a 5K thumbnail only add 5 MB of usage to the FS or DB. Thumbnails are usually smaller though, so the overhead is probably exagerated in the above example.

Which mode will be best for your site is a subjective matter.

Please use this thread to discuss pros and cons of each mode. This will be a good way to determine which is best for your site. The number of images per garage and the size of images is a consideration of this equation as well.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-22-2005, 10:07 PM
nexialys
Guest
 
Posts: n/a
Default

the only "safe" version of file archiving is a Files System, because databases tend to grow and if an image is uploaded with a bug in the characters, you will trash your database when backuping... -- occured to more than one of my clients with the profile picture stuff.

also, file system is quite efficient if you talk about saving space... you can locate the directory elsewhere than on the local hd, so if you have a HD crash, not all files are lost.

also, db backups are minimised if you have a load of users using this system...
Reply With Quote
  #3  
Old 01-22-2005, 10:12 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's alot to be said about that statement and most of it is why the file system storage now exists.
Reply With Quote
  #4  
Old 01-22-2005, 11:43 PM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think regardless of the pro and cons of either the FS or DB storage method, providing both the options leaves the choice to use either up to the user

Personally, I would use the FS.
This is from my experience using vbGarage 3.1.1 with loads of images and with the DB method and my DB is getting really big and making DB backups a PITA.
Reply With Quote
  #5  
Old 01-23-2005, 12:00 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, we know what you want. In fact I'm sure it's your asking for it that got it done.

So officially, I'd say chiq inspired FS mode.
Reply With Quote
  #6  
Old 02-25-2005, 07:08 PM
Rick Sample Rick Sample is offline
 
Join Date: Apr 2004
Location: Ohio
Posts: 407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a quick question for you guys: I just upgraded to vbgarage 4.1.0 and another coder and I have managed to get our garage fully custom, we're not even close to being done, but the major additions are competed. Its running in database mode with vbgarage 4.1.0 Right now we only have a couple hundred megs or so left on our server space.

When we get our new dedicated machine, we will have hundreds of gigs, so we will have enough room for file mode!

My question: Is their a way to upgrade 4.1.0 database mode to 4.1.0 file safe mode? If so, is their also a way to do it so it doesn't update the templates or anything so we can keep our custom vbgarage??


http://www.muscle-mustangs.com/forums/vbgarage.php Again, we still have to add: garage views, number of rides, number of images, and custom view garage, With all of those upcomming changes and the changes we already made to the garage, loosing all of that would be terrible. Thanks for any and all help
Reply With Quote
  #7  
Old 02-25-2005, 08:10 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a utility in the package to move images and thumbs from the DB to the file system.

I forgot to post it. It will move the images without affecting anything else.
Reply With Quote
  #8  
Old 02-25-2005, 10:05 PM
Rick Sample Rick Sample is offline
 
Join Date: Apr 2004
Location: Ohio
Posts: 407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by noppid
There is a utility in the package to move images and thumbs from the DB to the file system.

I forgot to post it. It will move the images without affecting anything else.
Nice! Where could I find this script at?? Thanks!
Reply With Quote
  #9  
Old 02-25-2005, 10:20 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I posted it in the release here. https://vborg.vbsupport.ru/showthread.php?p=610640
Reply With Quote
  #10  
Old 03-30-2005, 04:34 PM
shane801 shane801 is offline
 
Join Date: Mar 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I store my images in fs mode in an images folder in my root, would anyone be able to browse my images file by going directly to www.my_site.com/my_gallery_images?

How would I prohibit this?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05057 seconds
  • Memory Usage 2,280KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete