vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Optimizing vB database (https://vborg.vbsupport.ru/showthread.php?t=235343)

Whatah 02-08-2010 08:00 PM

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.

ChopSuey 02-09-2010 05:56 AM

Run repair/optimize tables via admincp until all say OK

Marco van Herwaarden 02-09-2010 10:47 AM

Database size should hardly make a difference. The real problem here is that your host is limiting you to max 50 connections.

Whatah 02-09-2010 05:36 PM

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 :)

Marco van Herwaarden 02-10-2010 12:51 PM

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.!!


All times are GMT. The time now is 03:46 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.01050 seconds
  • Memory Usage 1,720KB
  • 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
  • (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