AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Register System Lagging the server (https://forums.alliedmods.net/showthread.php?t=311327)

D4rkSiD3Rs 10-13-2018 10:26

Register System Lagging the server
 
Hello,

I'm using Register System V9.0 by m0skVi4a ;] on my server, and there are more than 3500 players registered on the server and the regusers.ini file size is 200kb.
The problem is when someone connect to the server, the plugin have to check in regusers.ini if the player is registered or not, then the server freezes for 3 or 5 seconds. And when the map changes the server stop functioning due to the large number of players connecting on the sametime.

So what do you suggest to avoid that lag coming from that plugin ?

CrazY. 10-13-2018 11:22

Re: Register System Lagging the server
 
In this case, switch to MySQL.

SkazzY 10-13-2018 11:34

Re: Register System Lagging the server
 
If you have 3500 different active users registered, you should have the ability to use MySQL (have a forum, private server or something else that gives you access to MySQL).

D4rkSiD3Rs 10-13-2018 12:17

Re: Register System Lagging the server
 
I am looking for a solution other than MySQL

klippy 10-13-2018 12:22

Re: Register System Lagging the server
 
Go with SQLite then.

D4rkSiD3Rs 10-13-2018 15:10

Re: Register System Lagging the server
 
Now I can't change the save method, if i changed it all registered users will be deleted.

CrazY. 10-13-2018 16:05

Re: Register System Lagging the server
 
You can do that without lose data, but will take time. Basically, load from ini and insert user reg in dabatase if not exists, if exists load from database. After a time, delete everything related to ini.

Or, delete everything and let your players create account again.

klippy 10-13-2018 16:06

Re: Register System Lagging the server
 
I'm sure it's possible to convert from your current format to SQLite easily.

CrazY. 10-13-2018 16:44

Re: Register System Lagging the server
 
Yes, @OP can also try to loop through the ini file and insert all data in mysql.

D4rkSiD3Rs 10-13-2018 17:44

Re: Register System Lagging the server
 
Actually, I want to leave it like it is, It's easy for me when I want to change the password of someone's.


All times are GMT -4. The time now is 00:54.

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