utarwyn / EnderContainers

A modern and customizable Bukkit plugin to divide enderchest into multiple inventories.
https://spigotmc.org/resources/4750/
BSD 3-Clause "New" or "Revised" License
25 stars 14 forks source link

Storage method command #186

Open andy3559167 opened 2 years ago

andy3559167 commented 2 years ago

I hope that commands can be added to transfer the locally stored data to mysql. Or change the storage box to db format, there are often problems in my server that open ec and wait for a few seconds before responding.

utarwyn commented 2 years ago

Hello, thank you for the idea, great one of course! 👍 Kind of a duplicate of this very old issue #55

andy3559167 commented 2 years ago

So at present, can I only transfer related files manually? QAQ

utarwyn commented 2 years ago

I think it will be very difficult to transfer players data manually, especially if it is a large amount of players. I could work on a tool to automate this, but I hesitate to integrate it into the plugin or make it an external tool.

andy3559167 commented 2 years ago

It may be that the .yml file is used for storage. When the number of people is large, the /ec command will wait about 3-5 seconds to respond (I don't know if this is related to the storage method, but running a new server /ec command can Quick response). Looking forward to the tools you develop.

utarwyn commented 2 years ago

According to feedback from other server owners, file storage should be faster than database access so this is very strange! Maybe a performance issue with your disk?

The plugin only loads the files of players who connect to your server, so I don't think that the loading time is causing by a large amount of files. But maybe some files are quite big (depending on the number of allowed chests and their content). If you can give me some examples I can try to find the cause of the problem.

andy3559167 commented 2 years ago

but i am using m.2 ssd :( Or is it caused by too much player data? I have more than 2000 player profiles