Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Uneeded nodes not being removed #500

Closed
confuser opened this issue Jul 26, 2012 · 5 comments
Closed

Uneeded nodes not being removed #500

confuser opened this issue Jul 26, 2012 · 5 comments

Comments

@confuser
Copy link

We've noticed as the pex file gets bigger and bigger it causes lag on our dedicated server. Surely it would be better to remove these empty nodes?

player1:
worlds:
Vareide1-1: {}
player2: {}
player3:
worlds:
Vareide1-1: {}
Spare: {}

I've had to write a plugin which cleans them up, our pex file went from about 30,000 lines to 5,000 and lag completely disappeared. I assume it causes lag because each time it re-does the cache it goes through each node?

@Fate-Kun
Copy link

would you kindly share that plugin with me? I have similar issues DX

@t3hk0d3
Copy link
Contributor

t3hk0d3 commented Aug 1, 2012

as the pex file gets bigger and bigger

and then you have to migrate on mysql :)

@confuser
Copy link
Author

confuser commented Aug 1, 2012

Will the MySQL backend suffer from an equivalent of empty nodes to empty rows in the table? Surely it would be better to optimise the default file based backend to remove nodes such as the ones I've posted?

@bacon-avenger
Copy link

There is also this:

pex users cleanup [threshold]
Remove "dead" users from the file. [threshold] is in days and defaults to 30

Also, if I'm not mistaken, the createUserRecords: false setting in the PEX config will stop it from creating players in the permissions file that are in the default group and do not have anything assigned to them, such as a specific permission or prefix, at a player level.

@zml2008
Copy link
Member

zml2008 commented Jun 30, 2013

This issue is no longer relevant with the upcoming PermissionsEx 2.0. See this forum post for more information.

@zml2008 zml2008 closed this as completed Jun 30, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants