vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Attachment In Sql Hack (https://vborg.vbsupport.ru/showthread.php?t=124352)

puertoblack2003 08-18-2006 10:53 PM

Attachment In Sql Hack
 
Good day vb Associates,

i have a question that I'm hoping that it can be answered.Is there such a hack to redirect attachment files that is uploaded to a server to where the vb is stored at and redirected it to another server to relieve the space size in my sql and attachments?

Reason that I'm asking is i was backing up mysql when i noticed the file size so far is up to 126,713 kb and would like to take the load off from the sql.

Thanks in advance , pb

Ntfu2 08-18-2006 10:57 PM

Dont store your attachments in the database. Move them all to the filesystem and that would greatly shrink your db size and remove some unneccasary load.

If you need a quick how to for this just let me know

puertoblack2003 08-18-2006 11:23 PM

Quote:

Originally Posted by Ntfu2
Dont store your attachments in the database. Move them all to the filesystem and that would greatly shrink your db size and remove some unneccasary load.

If you need a quick how to for this just let me know

yes please because i thought i done that through admincp and it still showing the file size i moved it to the directory file.

Quote:

Originally Posted by puertoblack2003
yes please because i thought i done that through admincp and it still showing the file size i moved it to the directory file.


ok i did it i transfered all attachment to file dir. Now it's still showing 693 in sql is that normal? i went to the dir to see and all file apparently is there and it's stored by file number.But in mysql is showing
Quote:

133,840 Bytes
just curiuos making sure it worked.:)

Ntfu2 08-19-2006 06:04 AM

looks like it.

Good job and hopefully this helps your servers workload for now ;)

grains 11-03-2006 06:13 AM

how do we move attachments from DB to filesystem?


All times are GMT. The time now is 03:15 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.01124 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)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