Have a large amount of players in garrysmod\data\ulib\users.txt (378 KB)
Add a user in any group
Extreme lag
Expected behavior
Server should add user to group without locking up the server
Actual behavior
Locks up the server (auto disconnect) for about 3 seconds, then adds user in group
Error(s) in server console, if any
No
Error(s) in player's console, if any
No
Version
ULib v2.71d (08/04/22)
ULX v3.81d (08/04/22)
I know the problem is my large users.txt file because when I delete it everything works normally but is there any way at all to fix this other than just not having so many users in groups? It's worrying because my server is really small and it's surprising that this has become an issue. I was hoping I could install mysqloo and connect ulib and ulx to it to manage ranks in a separate database to hopefully prevent the lag that way but I found out that isn't officially supported. Which is crazy to me because I know there's other bigger servers that have way more users in groups than me so I do not understand why this is happening to me exactly. Any ideas or feedback would be great help. Thanks
Found the fix and exactly what I was looking for. Sorry for not researching this very well, I was very tired last night. This script fixed the lag! Hopefully this helps anyone else with the same issue as me :)
Steps to reproduce
Expected behavior
Server should add user to group without locking up the server
Actual behavior
Locks up the server (auto disconnect) for about 3 seconds, then adds user in group
Error(s) in server console, if any
No
Error(s) in player's console, if any
No
Version
ULib v2.71d (08/04/22) ULX v3.81d (08/04/22)
I know the problem is my large users.txt file because when I delete it everything works normally but is there any way at all to fix this other than just not having so many users in groups? It's worrying because my server is really small and it's surprising that this has become an issue. I was hoping I could install mysqloo and connect ulib and ulx to it to manage ranks in a separate database to hopefully prevent the lag that way but I found out that isn't officially supported. Which is crazy to me because I know there's other bigger servers that have way more users in groups than me so I do not understand why this is happening to me exactly. Any ideas or feedback would be great help. Thanks