The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
freddie's Repair & Optimize Database (vB integration) Details »» | ||||||||||||||||||||||||||||
freddie's Repair & Optimize Database (vB integration)
Developer Last Online: Nov 2023
As we all know, there is a great tool included in the /extras folder, called [high]repair.php[/high].
I think not alot of people use it, because probably they don't know the gold mine hidden on it, related to tables optimisation. freddie's script will repair your database, but ALSO will optimize the tables. So what is that means? It will remove all the empty spaces that clutter the database. The result? A smaller database size. I ran the script on my localhost. At the beggining my database was 1.63MB. After I completed the repair&optimize process, my database was shrinked to 0.82MB!! That's almost half of the original size!! So I decided to integrate this tool directly into my admin CP. NOTE: The script is made by freddie, I only adapt it to the VB security and made it look like part of your CP. Also, my goal was to be able to optimize easy my database (with one click), not to repair it. You can use this script in combination with another hack, also made freddie: Admin Quick Stats [high]INSTALL PROCEDURE[/high] In /admin/index.php, find: Code:
makenavoption("vBulletin Options","options.php?t=0","<br>"); Code:
makenavoption("Repair & Optimize Data","repair.php?action=start","<br>"); [high]UPDATE[/high] Quoted from freddie's post: Quote:
Show Your Support
|
Comments |
#22
|
||||
|
||||
Quote:
You can also check out this thread for more info: http://www.vbulletin.com/forum/showt...highlight=1016 |
#23
|
||||
|
||||
:s - if I run this, what are the chances that it's going to eat my MySQL db?
|
#24
|
||||
|
||||
Just installed it, worked fine
Not much change in database size though, from 1.8MB to 1.74MB oh well. I don't know if its possible, but how about a feature where it will automatically close your forum with the message "Forum temporally closed for Repair & Optimizing Database". It will then send you a backup of the database (just in-case), and after you get it, it will start to optimize. After its all done, it will open the forum again automatically. On a side note, I thought it was OK to distribute original vBulletin code, if you get permission from the people who made it. Just like in that updated vB code JS thingy. |
#25
|
||||
|
||||
Quote:
While they receive the lovely 404 Not found message, you can work with your database, then rename your dir back to whatever it is in the first place.. Or change your admins' usergroup to "member" for a while.. Let them taste how does it feel to be an ordinary user Logician |
#26
|
|||
|
|||
Awesome Hacks. Works Perfect.
Just have one question since I've never used the repair.php script until Now. For a couple tables I got this Message "40 clients is using or hasn't closed the table properly" What does this mean? And is it better to close the board when running the repair script or run it when no one is on the board? Thanks again for a great hack. |
#27
|
|||
|
|||
Quote:
|
#28
|
||||
|
||||
Welp, I had a back-up, thankfully. I ran it on the backup, and it didn't cause me any problems. Even though I had suspended the forums while I was running it, I am guessing that someone had just made a post or fiddled with the posts table while it was being optimized to cause the error. Just my thoughts.
My optimized results - went from 64 megs to 62 megs. It's something. ;-) Kaelon |
#29
|
||||
|
||||
Quote:
Quote:
i changed the file, added some clear guidelines on how to operate with the script. i dont know if you downloaded the script again... |
#30
|
||||
|
||||
Well, if it becomes a problem, just change the instructions to 'copy extras/repair.php to you admin folder' and do all the filemods from there
|
#31
|
|||
|
|||
side note
I do not mean to ditch you here, I am as much new to the forum as many, and Just want to be sure on things. I like it that you integrated it. Looks good and would be a nice addition. There are more files I thought of integrating, and so I did a month ago. Just no use publishing them and/or sharing them because they actually are original vb source code |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|