Raised This Month: $ Target: $400
 0% 

Website is slow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SnowHP
Senior Member
Join Date: Sep 2016
Location: Porto, Portugal
Old 07-11-2018 , 20:26   Re: Website is slow
Reply With Quote #1

Quote:
Originally Posted by Doulos View Post
If you have access to the database directly via phpmyadmin, or some other mySQL tool, use this...

DELETE FROM sb_bans WHERE created < the unix timestamp of the date you want to start deleting bans

example: To delete all bans, using a SQL query, that were created before Saturday, February 4, 2017 1:59:09 AM use:

DELETE FROM sb_bans WHERE created < 148617354

There are many online unix timestamp conversion tools.

Note: This will only delete the data from the sb_bans table, there may be other data for that player in other tables.
Will this fix the lag?
__________________
SnowHP is offline
Doulos
AlliedModders Donor
Join Date: Aug 2007
Old 07-12-2018 , 04:50   Re: Website is slow
Reply With Quote #2

If it is caused by having such a large table it should help - depending on how many of the huge number of bans you have get deleted. Many other factors go into how long it takes the query to return your data and show it on the page - such as those outlined above.

Make a backup of your database first, then delete a bunch of the bans then check to see if it makes a difference. If not you can always restore your tables.

Last edited by Doulos; 07-12-2018 at 04:53.
Doulos is offline
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 -4. The time now is 12:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode