Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2012, 03:48 PM
jemiller226 jemiller226 is offline
 
Join Date: Jan 2012
Location: Cranberry Twp, PA
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Newbie admin.

Hi,

My wife has been a long-time moderator on a mid-sized vBulletin forum for several years now, and the original owners decided that they didn't have the time or money to continue running it, so my wife inherited it. Because I work in IT, guess who is now the technical contact.

However, I've been essentially dropped in at the deep end--this forum hasn't been maintained properly in quite a long time, and so it's running up against the host's maximum size for a MySQL database. I saw that the "post" table was immense, suggesting that it was time to prune threads. However, whenever I try to follow the instructions in the vBulletin docs, it gets partway through and times out. Fine, I try a limiting my search more...finally, I can get maybe 80 threads pruned at once, but I planned to do many many more than that.

So, is there any better way to do this? Furthermore, what needs to be done once I do the prune? I assume I need to optimize the post table, but what counters do I need to update (since it just says to "update your counters"...but, which ones?!)?

This is all information that seems to just be understood by vBulletin admins, but I can't find it anywhere, no matter how well I use my Google-fu.
Reply With Quote
  #2  
Old 07-07-2012, 04:14 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How big is your database? Also how are you storing the attachments, in the db or as files?
Reply With Quote
  #3  
Old 07-07-2012, 04:25 PM
jemiller226 jemiller226 is offline
 
Join Date: Jan 2012
Location: Cranberry Twp, PA
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick reply.

The max database size is 700 MB. We were right up against it. The post table by itself was well over 500. I'm storing attachments, avatars, profile pics, signature pics--basically anything I can--in the filesystem, not in the DB. That's the very first thing I changed, but all in all there were so few attachments that it hardly mattered.

The method I more or less stumbled across is this:
1. Prune x amount of threads.
2. Rebuild Thread Information.
3. Rebuild Forum Information.
4. Optimize "post" and "postedithistory".
5. repeat for a while
6. Update Post Counts (because we don't really use that for anything).

Once I did that a few times for ~40-80 threads at a time, things seemed to free up. I'm able to do several hundred threads in one fell swoop now. I hate to think how long it's been since someone bothered to look at any of this.
Reply With Quote
  #4  
Old 07-07-2012, 07:48 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you considered to purchase a bigger hosting plan instead? Because you can''t keep pruning things every so often.
Reply With Quote
  #5  
Old 07-07-2012, 08:46 PM
jemiller226 jemiller226 is offline
 
Join Date: Jan 2012
Location: Cranberry Twp, PA
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And why is that? They've pruned old posts throughout the history of the forum. I see vBulletin add-ons on this very site that auto-prune for you if you want (I don't).

Money doesn't grow on trees, you know.
Reply With Quote
  #6  
Old 07-07-2012, 09:01 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jemiller226 View Post
And why is that? They've pruned old posts throughout the history of the forum. I see vBulletin add-ons on this very site that auto-prune for you if you want (I don't).

Money doesn't grow on trees, you know.
Take it easy pal, it was only a suggestion.
Reply With Quote
  #7  
Old 07-07-2012, 09:10 PM
jemiller226 jemiller226 is offline
 
Join Date: Jan 2012
Location: Cranberry Twp, PA
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And my question was serious. Why shouldn't I prune now and then?
Reply With Quote
  #8  
Old 07-08-2012, 04:59 AM
slammz slammz is offline
 
Join Date: Oct 2011
Location: United States
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jemiller226 View Post
And my question was serious. Why shouldn't I prune now and then?
It may be okay to prune "now and then", but it would be nice to keep the content on your forum for future reference etc.
Reply With Quote
  #9  
Old 07-08-2012, 01:02 PM
jemiller226 jemiller226 is offline
 
Join Date: Jan 2012
Location: Cranberry Twp, PA
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay. I just wanted to make sure it wasn't going cause structural problems with the database. A lot of the stuff on the forum frankly isn't designed to be kept. It's all pretty transient stuff. If something's really and truly important, we make it a sticky, and I won't prune those.
Reply With Quote
  #10  
Old 07-08-2012, 02:53 PM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mmm...that could be a lot of stickies.

Keep in mind that if it's prune/deleted it would leave a lot of dead links for search engines and possibilities of people finding the forum due to lack of content in search.
Reply With Quote
Reply


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 12:42 AM.


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.04127 seconds
  • Memory Usage 2,250KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)postbit
  • (10)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