vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Is there any way to make SQL database size small? (https://vborg.vbsupport.ru/showthread.php?t=315712)

XYZ500 11-29-2014 08:26 PM

Is there any way to make SQL database size small?
 
Keeping backups in compressed zip format is not an issue, but the database size itself is around 2GB which is quite big. Is there any way to make the size small?

ozzy47 11-29-2014 08:32 PM

Well, what is it in the DB that is making it that size?

Are you storing attachments in the db? if so, move them to the file system and that will free up space.

Same goes for avatars etc. Move everything you can into the file system.

Max Taxable 11-29-2014 08:35 PM

Two Gig ain't big.

ozzy47 11-29-2014 08:40 PM

It's not bad depending on the host, and what it is that is making it that size.

XYZ500 11-29-2014 10:02 PM

Quote:

Originally Posted by ozzy47 (Post 2524819)
Well, what is it in the DB that is making it that size?

Are you storing attachments in the db? if so, move them to the file system and that will free up space.

Same goes for avatars etc. Move everything you can into the file system.

How to find out if attachments and avatars are stored in DB? And how to move them to file system?

ozzy47 11-29-2014 10:04 PM

ACP --> Attachments --> Attachment Storage Type

You still did not answer what it is in your DB that is making it that size.

Max Taxable 11-29-2014 10:23 PM

There are many 100s of BIG boards with millions of posts and 10s of thousands of avatars stored that have much larger databases than 2GB. What makes you think you need to reduce yours?

ozzy47 11-29-2014 10:32 PM

Really don't matter, if he/she is storing the avatars and attachments in the DB, by moving them to the file system, will not only reduce the DB size, it will also help with the sites speed. :)

Max Taxable 11-29-2014 10:35 PM

Quote:

Originally Posted by ozzy47 (Post 2524848)
Really don't matter, if he/she is storing the avatars and attachments in the DB, by moving them to the file system, will not only reduce the DB size, it will also help with the sites speed. :)

No doubt about that. It's one of your own basic tips for speeding up your vBulletin.

I'm just curious to know what makes him think it is too big. Sounds like something someone with very little knowledge, would tell him. Someone like, a web host call center puke, for example. Someone trying to blame their own performance issues on the customer.

Newsflash for the OP - the entire DB isn't ever called. Just the parts of it the scripts need, at the time they need it.

XYZ500 11-30-2014 11:31 AM

Quote:

Originally Posted by ozzy47 (Post 2524840)
ACP --> Attachments --> Attachment Storage Type

You still did not answer what it is in your DB that is making it that size.

I see this when I go to ACP --> Attachments --> Attachment Storage Type. http://prntscr.com/5bpgqv

I believe this means that the attachments are being stored in the DB. Should I hit the "go" button?

In answer to your question, I do not exactly know what is being stored in the DB that is making up this size. There are 1million+ posts and around 70k users.

I am not really a technical expert so I have to pretty much ask my host to do everything server related for me (e.g, restoring DB backup) and then they whine that its going to take a lot of time because 2GB is a VERY BIG size. So that's why I was just wondering if I could do anything to reduce the size.

Max_Taxable, I believe I have answered to your post as well here.


All times are GMT. The time now is 01: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.01621 seconds
  • Memory Usage 1,736KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete