Previous Thread
Next Thread
Print Thread
Hop To
#205627 01/27/2008 11:19 AM
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
It seems to me there was a routine command at one time to optimize the database...

How often do we do that? AND how do we do that? Do we shut down the forum to do that?

ANY other stuff we need to do periodically?


http://clubadventist.com/forums

No longer following the carrot
Stan #205695 01/29/2008 1:50 PM
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
**bump**


http://clubadventist.com/forums

No longer following the carrot
Stan #205700 01/29/2008 2:17 PM
Joined: Nov 2006
Posts: 3,097
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097
Likes: 1
Well there are a few things one could do, but I'll leave it for Rick to answer here as I don't want to mislead you.

Joined: Jun 2006
Posts: 16,536
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,536
Likes: 150
Best bet, install PHPMyAdmin (you likely have it installed), browse to your database within it, click the optimize option (usually you select the tables you want to optimize and click optimize on the dropdown)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #206777 02/19/2008 10:18 AM
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
Is it possible, and I think we had it once before, to have a script in the control panel that did this once a week?


OR I may be thinking of a different forum package.


http://clubadventist.com/forums

No longer following the carrot
Stan #206809 02/19/2008 5:49 PM
Joined: Jun 2006
Posts: 465
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 465
Likes: 1
This should do it laugh

OPTIMIZE TABLE `ubbt_ADDRESS_BOOK` , `ubbt_ADMIN_SEARCHES` , `ubbt_ANNOUNCEMENTS` , `ubbt_BANNED_EMAILS` , `ubbt_BANNED_HOSTS` , `ubbt_CACHE` , `ubbt_CACHED_PERMISSIONS` , `ubbt_CALENDAR_EVENTS` , `ubbt_CATEGORIES` , `ubbt_CENSOR_LIST` , `ubbt_DISPLAY_NAMES` , `ubbt_FILES` , `ubbt_FORUMS` , `ubbt_FORUM_LAST_VISIT` , `ubbt_FORUM_PERMISSIONS` , `ubbt_GRAEMLINS` , `ubbt_GROUPS` , `ubbt_IMPORT_MAP` , `ubbt_LANGUAGES` , `ubbt_MAILER` , `ubbt_MEMBER_SEARCHES` , `ubbt_MODERATORS` , `ubbt_MODERATOR_NOTIFICATIONS` , `ubbt_POLL_DATA` , `ubbt_POLL_OPTIONS` , `ubbt_POLL_VOTES` , `ubbt_PORTAL_BOXES` , `ubbt_POSTS` , `ubbt_PRIVATE_MESSAGE_POSTS` , `ubbt_PRIVATE_MESSAGE_TOPICS` , `ubbt_PRIVATE_MESSAGE_USERS` , `ubbt_RATINGS` , `ubbt_REGISTRATION_FIELDS` , `ubbt_RESERVED_NAMES` , `ubbt_RSS_FEEDS` , `ubbt_SAVED_QUERIES` , `ubbt_SEARCH_RESULTS` , `ubbt_SHOUT_BOX` , `ubbt_STYLES` , `ubbt_USERS` , `ubbt_USER_DATA` , `ubbt_USER_GROUPS` , `ubbt_USER_NOTES` , `ubbt_USER_PROFILE` , `ubbt_USER_TITLES` , `ubbt_VERSION` , `ubbt_WATCH_LISTS`


updated version laugh
Attachments
Optimize DB.txt (1 KB, 91 downloads)
Updated for 7.3

Last edited by Mors; 02/19/2008 6:13 PM.

Happy Customer !!!
Mors #206810 02/19/2008 5:50 PM
Joined: Jun 2006
Posts: 465
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 465
Likes: 1
copy and past to your SQL commands and save it under the database tools section of control panel. You can past this into the SQL commands and save it off.

Last edited by Mors; 02/19/2008 6:05 PM.

Happy Customer !!!
Mors #206811 02/19/2008 6:03 PM
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
i so appreciate that,, it only took 2 minutes or so..


http://clubadventist.com/forums

No longer following the carrot
Stan #207265 02/25/2008 2:55 AM
Joined: Jun 2006
Posts: 465
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 465
Likes: 1
No problem laugh


Happy Customer !!!
Mors #207271 02/25/2008 4:12 AM
Joined: Aug 2006
Posts: 1,659
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,659
Likes: 1

This is also easily done via phpMyAdmin ( "Check tables having overhead" > "With Selected: Optimize Table" ) but I also would like to see if this could be automated, say weekly...?

Also, ubbt_ONLINE (as HEAP) cannot be "optimized" this way despite the overhead -- is there a way to clear the overhead?


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 8.1.34 / MySQL 5.7.23-23 / Apache 2.4.67
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Mors #207272 02/25/2008 6:32 AM
Joined: Dec 2005
Posts: 122
member
member
Joined: Dec 2005
Posts: 122
Originally Posted by Mors
copy and past to your SQL commands and save it under the database tools section of control panel. You can past this into the SQL commands and save it off.

should the board be shut down before running this command??


JakChat.com -- Forums for Indonesia's English-speaking community
Ubuntu-Indonesia.com -- Forums for Indonesia's Ubuntu Users
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
YES!


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Jun 2006
Posts: 465
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 465
Likes: 1
Yes if you don't believe David Dreezer laugh

It is always a good idea to lock out transactions before running these types of commands


Happy Customer !!!
Mors #207332 02/25/2008 8:48 PM
Joined: Dec 2005
Posts: 122
member
member
Joined: Dec 2005
Posts: 122
ok, i'll take that as a "yes" ...


JakChat.com -- Forums for Indonesia's English-speaking community
Ubuntu-Indonesia.com -- Forums for Indonesia's Ubuntu Users
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
YES! (take it from Mors. he's always right)


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Jun 2006
Posts: 465
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 465
Likes: 1
haha /wave David laugh


Happy Customer !!!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 4:34 PM
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
Who's Online Now
7 members (toner, SD, Michael_E6D9, Bill_Owens, BellaOnline, 2 invisible), 374 guests, and 89 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)