Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 02-08-2010, 08:00 PM
Whatah Whatah is offline
 
Join Date: Feb 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Optimizing vB database

our site www.yugiohforums.com
currently running vB 3.8.4 patch level 2
Treads: 37,922, Posts: 562,787, Members: 15,793

According to our host, with our activity (100 online members + 300 guests) and our database size (2,000,000 lines) we are hitting the limit of shared box hosting.

We are starting to get "500 Server Error" from time to time, according to our error logs it is because we are exceeding max_user_connections (50) caused (according to our host) by the size of our database.

I figure that part of the issue is database size, and other part is number of queries.

We have a few major modifications like CybChatbox, v3 Arcade, vBExperience, and vB Optimize.

We also get some active "+++++ game" threads that hit 1k or 2k posts before the game ends. Would it be possible to improve the database performance by moving some of the very large threads to an non-active subforum where posting is not allowed?

Or should i focus on removing some forum modifications that are adding queries? My host is pointing primarily to the size of the database rather then number of queries so I would love a second opinion before i commit to removing the vBExperience or Chatbox mods.



Thanks for any insight.
Reply With Quote
  #2  
Old 02-09-2010, 05:56 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Run repair/optimize tables via admincp until all say OK
Reply With Quote
  #3  
Old 02-09-2010, 10:47 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Database size should hardly make a difference. The real problem here is that your host is limiting you to max 50 connections.
Reply With Quote
  #4  
Old 02-09-2010, 05:36 PM
Whatah Whatah is offline
 
Join Date: Feb 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

usually i run repair whenever we get a database error.

this morning i logged into cpanel and saw that we were listed as having zero database instead of our normal 3. obviously the forum was not working lol

i went to the mysql link where we repair databases and there were none in the dropdown.

10 minutes later, while i was on the phone with hsot support, the site was working. the databases were selectable to be repaired in the drop-down. strange thing is that even now, on the main cpanel page, we are listed as "SQL Databases 0 / 50 " even though currently the site is working and when i go into mySQL databases they are of course there to be selected and repaired

host said that since the queries usually just take a few miliseconds that 50 connections is considered reasonable for a shared host solution. up until a week ago we didnt ave any trouble at all.

we have about 10k posts in our junkyard trash forum that we will clear out, that should provide a small database size reduction.

on the phone this morning i actually did get someone from host support to admit that they have been having issues with this box since friday. now all i need is for them to fix it would trying to blame it on our site



thanks a ton for the information and feedback
Reply With Quote
  #5  
Old 02-10-2010, 12:51 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Once more: Database size is not related to this.

Also you should only be repairin a database when it is really needed. Doing so on each DB error you get can even have the opposite effect and corrupt your database.!!
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:23 PM.


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.06323 seconds
  • Memory Usage 2,193KB
  • Queries Executed 13 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete